/* Modern Light Theme - Sign In & Authentication */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
  color: #1e293b;
  padding: 1.5rem;
}

/* Auth Card */
.auth-wrapper {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.25);
}

.auth-header .logo-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.auth-header p {
  font-size: 0.9rem;
  color: #64748b;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.input-container {
  position: relative;
}

.input-container input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.input-container input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-container input::placeholder {
  color: #94a3b8;
}

/* Extra options (forgot password) */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.forgot-link {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #4338ca;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e2e8f0;
}

.divider span {
  padding: 0 0.8rem;
}

/* Social & Guest Buttons */
.btn-google {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #334155;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}

.btn-google:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-guest {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #4338ca;
  background-color: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-guest:hover {
  background-color: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
  transform: translateY(-1px);
}

/* Footer / Switch Mode */
.auth-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

.auth-footer a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: #4338ca;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 0.9rem 1.4rem;
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
  opacity: 1;
}

.toast-msg.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.toast-msg.success {
  border-left: 4px solid #10b981;
}

.toast-msg.error {
  border-left: 4px solid #ef4444;
}

/* Reset Password Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9998;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-box {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
}

.modal-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.modal-box p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.btn-secondary {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
  }
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
  .auth-header {
    margin-bottom: 1.5rem;
  }
  .auth-header .logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .auth-header h1 {
    font-size: 1.35rem;
  }
  .auth-header p {
    font-size: 0.85rem;
  }
  .input-container input {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }
  .btn-primary, .btn-google, .btn-guest {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }
  .toast-msg {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
    font-size: 0.85rem;
  }
  .modal-box {
    padding: 1.5rem 1.25rem;
  }
}
