/* ============================================================
   auth-base-new.css — Purified & Optimized
   Generated by: CSS Purifier & Optimizer Skill
   Rules applied: R1-R10
   Original: auth-base.css
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES (:root + dark theme)
   ============================================================ */

/*
  auth-base.css inherits :root tokens from home.css.
  Dark theme vars are fully defined in home-new.css :root / [data-theme="dark"].
  No additional token redefinitions needed here.
*/

/* ============================================================
   2. RESET / BASE
   ============================================================ */

html {
  min-height: 100%;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  overflow-y: auto;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

.auth-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.auth-subtitle {
  color: var(--text-2);
  margin: 0;
  font-size: 0.87rem;
}

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.divider {
  color: var(--text-3);
  font-size: 0.78rem;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.auth-main-container {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 90vh;
  max-width: 1200px;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: visible;
}

/* ============================================================
   5. NAVIGATION / HEADER
   ============================================================ */

.auth-header-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.auth-header-controls .theme-btn {
  order: 1;
}

.auth-header-controls .back-btn {
  order: 2;
}

.auth-header-controls .back-btn i,
.faq-back-btn i {
  transform: rotate(180deg);
}

.control-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.97rem;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.control-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.control-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.control-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================================================
   6. COMPONENTS
   ============================================================ */

/* Image section */
.auth-image-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-image-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

.auth-image-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

.image-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-decorative-logo {
  max-width: 120px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--bg);
  margin: 0;
}

.image-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Form section */
.auth-form-section {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg-card);
  position: relative;
  justify-content: flex-start;
  min-height: auto;
  overflow: visible;
  border-radius: 50px;
}

/* Auth card */
.auth-card {
  background: transparent;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.auth-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

/* Form steps */
.form-step {
  display: none;
}

.form-step-active,
.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  background: var(--bg-2);
  color: var(--text);
  transition: all var(--transition);
  box-sizing: border-box;
}

.form-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  background: var(--bg);
}

.form-input::placeholder {
  color: var(--text-3);
}

/* Error message */
.error-message {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  min-height: 18px;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-label {
  font-size: 0.83rem;
  color: var(--text-2);
  cursor: pointer;
}

/* Guest login */
.guest-login-container {
  text-align: center;
  margin-top: 1.5rem;
}

.guest-login-divider {
  margin: 1rem 0 0.5rem;
  color: var(--text-3);
  font-size: 0.83rem;
  position: relative;
}

.guest-login-divider::before,
.guest-login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}

.guest-login-divider::before {
  right: 70%;
}

.guest-login-divider::after {
  left: 70%;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */

/*
  Base .btn styles are defined in home-new.css.
  Auth pages inherit those without overrides.
  Unified hover animation for all auth buttons below.
*/

.auth-main-container .btn,
.auth-container .btn {
  transition: all var(--transition);
  position: relative;
}

.auth-main-container .btn:hover,
.auth-container .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-main-container .btn:active,
.auth-container .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.auth-main-container .btn-outline:hover,
.auth-container .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.auth-main-container .btn-link:hover,
.auth-container .btn-link:hover {
  transform: none;
  box-shadow: none;
  color: var(--fix-black);
}

/* Button full width for admin login */
.auth-main-container .btn-large,
.auth-container .btn-large {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   8. MODALS & OVERLAYS
   ============================================================ */

/* Notification Container */
#notificationContainer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(420px, calc(100vw - 2rem));
    z-index: 9999;
}

@media (max-width: 768px) {
    #notificationContainer {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

/* Notification toast */
.notification {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-120%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.87rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification::before {
  content: '';
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 768px) {
    .notification {
        padding: 0.875rem 1rem;
        font-size: 0.83rem;
    }
}

.notification-success {
  background: linear-gradient(135deg, rgba(var(--color-success-rgb), 0.12) 0%, rgba(var(--color-success-rgb), 0.06) 100%);
  border-color: rgba(var(--color-success-rgb), 0.3);
  color: var(--color-success);
}

.notification-success::before {
  background: var(--color-success);
}

.notification-error {
  background: linear-gradient(135deg, rgba(var(--color-danger-rgb), 0.12) 0%, rgba(var(--color-danger-rgb), 0.06) 100%);
  border-color: rgba(var(--color-danger-rgb), 0.3);
  color: var(--color-danger);
}

.notification-error::before {
  background: var(--color-danger);
}

.notification-warning {
  background: linear-gradient(135deg, rgba(var(--color-warning-rgb), 0.12) 0%, rgba(var(--color-warning-rgb), 0.06) 100%);
  border-color: rgba(var(--color-warning-rgb), 0.3);
  color: var(--color-warning);
}

.notification-warning::before {
  background: var(--color-warning);
}

.notification-info {
  background: linear-gradient(135deg, rgba(var(--color-info-rgb), 0.12) 0%, rgba(var(--color-info-rgb), 0.06) 100%);
  border-color: rgba(var(--color-info-rgb), 0.3);
  color: var(--color-info);
}

.notification-info::before {
  background: var(--color-info);
}



/* Toast notification styles unified in main.css */

/* ============================================================
   9. UTILITIES
   ============================================================ */

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Admin version info */
.admin-version-info {
  text-align: center;
  color: var(--text-2);
  font-size: 0.78rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.footer-link:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .auth-main-container {
    grid-template-columns: 45% 55%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  .auth-main-container {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .auth-image-section {
    display: none;
  }

  .auth-form-section {
    padding: 1.5rem;
    justify-content: flex-start;
    min-height: auto;
    overflow: visible;
    padding-top: 4rem;
  }

  .auth-card {
    max-width: none;
  }

  .auth-title {
    font-size: 1.45rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .auth-form-section {
    padding: 1rem;
    padding-top: 3.5rem;
  }

  .form-input {
    padding: 0.62rem 0.85rem;
    font-size: 0.83rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.83rem;
  }

  .auth-title {
    font-size: 1.25rem;
  }
}
