/* ════════════════════════════════════════════════════════════
   AUTHENTICATION STYLES (LOGIN, FORGOT, RESET) — Cozy Cafe
   ════════════════════════════════════════════════════════════ */

body.auth-body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 45%), 
              radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 45%), 
              #f8f9fb;
  font-family: 'Inter', sans-serif;
  overflow: auto;
  position: relative;
}

/* Floating background decoration spheres for glassmorphism WOW effect */
.auth-decor-1 {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
.auth-decor-2 {
  position: absolute;
  bottom: 15%;
  right: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 24px 16px;
  position: relative;
  z-index: 10;
}

.auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05),
              0 15px 20px -20px rgba(14, 165, 233, 0.05);
  animation: authFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--text-primary);
}

.auth-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
  transition: transform 0.2s;
}
.auth-brand:hover .auth-brand-icon {
  transform: rotate(-5deg) scale(1.05);
}
.auth-brand-icon svg {
  color: #ffffff;
  width: 20px;
  height: 20px;
}

.auth-brand-text {
  text-align: left;
}
.auth-brand-name {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.auth-brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Forms Enhancements */
.form-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-input-icon svg {
  width: 16px;
  height: 16px;
}

.auth-input {
  padding-left: 38px !important; /* spacing for left icon */
  height: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  outline: none;
}
.password-toggle-btn:hover {
  color: var(--text-primary);
}
.password-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.auth-input.has-right-btn {
  padding-right: 38px !important;
}

.auth-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.auth-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  transition: all 0.2s ease;
  outline: none;
  margin-top: 24px;
}
.auth-submit-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}
.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-footer-text {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Premium feedback/alerts banners */
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  line-height: 1.4;
  animation: alertPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-alert-success {
  background: var(--green-light);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.auth-alert-error {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.auth-alert-info {
  background: var(--accent-light);
  color: #075985;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.auth-alert svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-alert-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  display: flex;
  opacity: 0.7;
}
.auth-alert-close:hover {
  opacity: 1;
}

/* Helper micro-animations */
.input-shake {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px !important;
    border-radius: 14px !important;
  }
  .auth-header {
    margin-bottom: 24px !important;
  }
  .auth-title {
    font-size: 19px !important;
  }
  .auth-sub {
    font-size: 12.5px !important;
  }
}
