/* Login Page Specific Styles */

.login-main {
  min-height: calc(100vh - 200px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.3s ease-in;
}

.login-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-card h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111;
  text-align: center;
}

.subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 32px;
  text-align: center;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #111;
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 12px 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Divider */
.divider {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  margin: 24px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 25px);
  height: 1px;
  background: #e5e7eb;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Switch Form Links */
.switch-form {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.switch-form a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.switch-form a:hover {
  opacity: 0.7;
}

/* Forgot Password */
.forgot-password {
  text-align: center;
  margin-top: 16px;
}

.forgot-password a {
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: #111;
}

/* Message Styles */
.error-message,
.success-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}

.error-message {
  background: #fee;
  color: #c00;
  border: 1px solid #fcc;
}

.success-message {
  background: #efe;
  color: #060;
  border: 1px solid #cfc;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .login-main {
    padding: 20px 12px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .login-card h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 16px;
  }
  
  .divider {
    margin: 16px 0;
  }
}

/* Google buttons (white with black border) */
#google-login-btn,
#google-signup-btn {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  /* Match .submit-btn height by compensating for 2px border */
  padding-top: 10px;
  padding-bottom: 10px;
}

#google-login-btn:hover:not(:disabled),
#google-signup-btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#google-login-btn:active:not(:disabled),
#google-signup-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

#google-login-btn:focus-visible,
#google-signup-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

