/* === USER AUTHENTICATION ICONS === */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.user-button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 1px solid #333;
  background: transparent;
  color: #ff3b30 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.user-button i {
  font-size: 14px !important;
  line-height: 1;
}

.user-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.user-button:hover,
.user-button:focus {
  border-color: #ff3b30;
  color: #ff6b60 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.15);
  transform: scale(1.05);
}

/* Tooltip for user buttons */
.user-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.user-button:hover::after {
  opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-actions .user-icons {
    display: none;
  }
  
  .mobile-user-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 6px;
  }
  
  .mobile-user-actions .user-button {
    width: 100% !important;
    height: 40px !important;
    border-radius: 20px;
    font-size: 12px;
  }
  
  .mobile-user-actions .user-button::after {
    display: none;
  }
}

/* Login/Register Modal Styles */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.auth-modal.show {
  display: flex;
}

.auth-modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.auth-modal-close:hover {
  color: #ff3b30;
}

.auth-form h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.auth-form input:focus {
  border-color: #ff3b30;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.1);
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: #ff3b30;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.auth-form button:hover {
  background: #e6342a;
}

.auth-switch {
  text-align: center;
  margin-top: 15px;
  color: #666;
}

.auth-switch a {
  color: #ff3b30;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Social Authentication Styles */
.gmail-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: white;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-bottom: 20px;
}

.gmail-login-btn:hover {
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.30), 0 1px 3px 1px rgba(60,64,67,0.15);
  border-color: #dadce0;
}

.gmail-login-btn:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 1px 2px 0 rgba(66,133,244,0.30), 0 1px 3px 1px rgba(66,133,244,0.15);
}

/* Remember Me Checkbox */
.remember-me-section {
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remember-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #5f6368;
  user-select: none;
}

.remember-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #dadce0;
  border-radius: 2px;
  margin-right: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: #1a73e8;
  border-color: #1a73e8;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.remember-checkbox:hover .checkmark {
  border-color: #1a73e8;
}

/* Phone Authentication Specific Styles */
#smsCodeSection,
#loginSmsCodeSection {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

#sendSmsBtn,
#sendLoginSmsBtn {
  background: #34a853 !important;
  margin-top: 10px;
}

#sendSmsBtn:hover,
#sendLoginSmsBtn:hover {
  background: #2d8f47 !important;
}

#verifySmsBtn,
#verifyLoginSmsBtn {
  background: #ff3b30 !important;
  margin-top: 10px;
}

#verifySmsBtn:hover,
#verifyLoginSmsBtn:hover {
  background: #e6342a !important;
}
