/* Modern, minimal overrides for auth pages (login/register)
   Scoped to avoid affecting the rest of the site */

/* Page background accents */
.auth-page .content-wrapper.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px;
    background:
      radial-gradient(800px 800px at 0% 0%, rgba(36,138,253,0.08) 0, transparent 50%),
      radial-gradient(800px 800px at 100% 100%, rgba(2,118,248,0.08) 0, transparent 50%);
  }
  
  /* Card */
  .auth-form-light {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    backdrop-filter: saturate(120%) blur(2px);
  }
  
  /* Logo */
  .brand-logo img {
    max-width: 180px;
    height: auto;
  }
  
  /* Inputs */
  .auth-form-light .form-control {
    height: 48px;
    border-radius: 12px;
    border-color: rgba(0,0,0,0.12);
    transition: box-shadow .2s ease, border-color .2s ease;
  }
  
  .auth-form-light .form-control::placeholder {
    opacity: .7;
  }
  
  .auth-form-light .form-control:focus {
    border-color: #248afd; /* brand primary */
    box-shadow: 0 0 0 0.16rem rgba(36,138,253,0.25);
  }
  
  /* Buttons */
  .auth-form-light .btn {
    border-radius: 12px;
    height: 48px;
  }
  
  .auth-form-light .btn-primary {
    background: linear-gradient(135deg, #248afd, #0276f8);
    border: 0;
    box-shadow: 0 8px 16px rgba(36,138,253,0.25);
  }
  
  .auth-form-light .btn-primary:hover,
  .auth-form-light .btn-primary:focus {
    filter: brightness(0.98);
    box-shadow: 0 8px 18px rgba(36,138,253,0.35);
  }
  
  /* Google button */
  .btn-google {
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
  }
  
  .btn-google:hover {
    border-color: #c8cdd1;
    box-shadow: 0 2px 6px rgba(60,64,67,0.2);
  }
  
  /* Divider */
  .auth-divider {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
  }
  
  .auth-divider hr {
    margin: 0;
    border-top-color: rgba(0,0,0,0.12);
  }
  
  .auth-divider span {
    padding: 0 12px;
    border-radius: 999px;
    background-color: inherit; /* Matches card background in both themes */
    color: #6b7280;
    font-size: .875rem;
  }
  
  /* jQuery Steps (wizard) layout fixes */
  .auth-form-light .wizard > .content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
  }
  
  .auth-form-light .wizard > .content.clearfix {
    display: block;
  }
  
  .auth-form-light .wizard > .content > .body {
    width: 100% !important;
    padding: 0 !important;
    display: grid;
    grid-auto-rows: min-content;
    gap: 12px;
  }
  
  .auth-form-light .wizard > .content > .body .form-group {
    margin-bottom: 0;
  }
  
  .auth-form-light .wizard > .content > .body label {
    margin-bottom: 6px;
    font-weight: 500;
  }
  
  .auth-form-light .wizard > .content > .body .form-text {
    margin-top: 4px;
  }
  
  /* Wizard (register) tweaks */
  .wizard > .steps a,
  .wizard > .steps a:hover,
  .wizard > .steps a:active {
    border-radius: 999px;
  }
  
  .wizard > .steps .current a {
    background: linear-gradient(135deg, #248afd, #0276f8);
    color: #fff !important;
  }
  
  .wizard > .actions a {
    border-radius: 12px !important;
    padding: 10px 18px !important;
  }
  
  /* Small screens */
  @media (max-width: 576px) {
    .auth-form-light {
      padding: 24px !important;
    }
  }
  
  /* Dark theme friendly tweaks (best-effort without knowing theme class name) */
  /* Common dark selectors that might exist: .dark, [data-theme="dark"], .theme-dark */
  .dark .auth-divider hr,
  [data-theme="dark"] .auth-divider hr,
  .theme-dark .auth-divider hr {
    border-top-color: rgba(255,255,255,0.15);
  }
  
  .dark .btn-google,
  [data-theme="dark"] .btn-google,
  .theme-dark .btn-google {
    background: #1f2937;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.12);
  }
  
  /* Google SVG icon alignment */
  .btn-google svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  /* ========================================
     POPUP-STYLE CARD LAYOUT (Register Page)
     ======================================== */
  
  .auth-popup-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
  }
  
  .auth-popup-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Left Side: Image */
  .auth-card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #248afd 0%, #0276f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
  }
  
  .auth-image-content {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .auth-side-image {
    max-width: 145%;
    object-fit: contain;
  }
  
  /* Right Side: Form */
  .auth-card-inner {
    padding: 35px 35px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .auth-logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto;
  }
  
  .auth-card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
  }
  
  .auth-card-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 32px;
  }
  
/* Form Elements in Popup Card */
.auth-popup-card .form-control {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.auth-popup-card select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

.auth-popup-card .form-control:focus {
  border-color: #248afd;
  box-shadow: 0 0 0 3px rgba(36,138,253,0.1);
  outline: none;
}
  
  .auth-popup-card .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
  }
  
  .auth-popup-card .btn {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  .auth-popup-card .btn-primary {
    background: linear-gradient(135deg, #248afd, #0276f8);
    border: 0;
    box-shadow: 0 4px 12px rgba(36,138,253,0.3);
  }
  
  .auth-popup-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(36,138,253,0.4);
  }
  
  /* Wizard in Popup Card */
  .auth-popup-card .wizard > .content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
  }
  
  .auth-popup-card .wizard > .content > .body {
    width: 100% !important;
    padding: 5px !important;
  }
  
  .auth-popup-card .wizard > .steps {
    margin-bottom: 24px;
  }
  
  .auth-popup-card .wizard > .steps ul {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .auth-popup-card .wizard > .steps ul li {
    flex: 0 0 auto;
  }
  
  .auth-popup-card .wizard > .steps a {
    background: #e2e8f0;
    color: #6b7280;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  .auth-popup-card .wizard > .steps .current a {
    background: linear-gradient(135deg, #248afd, #0276f8);
    color: #fff !important;
  }
  
  .auth-popup-card .wizard > .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
  }
  
  .auth-popup-card .wizard > .actions a {
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 600;
    flex: 1;
  }
  
/* Scrollbar styling for card */
.auth-card-inner::-webkit-scrollbar {
  width: 0;
  display: none;
}

.auth-card-inner {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
  
  /* Responsive */
  @media (max-width: 991px) {
    .auth-card-image {
      display: none;
    }
    
    .auth-popup-card {
      max-width: 600px;
    }
  }
  
  @media (max-width: 768px) {
    .auth-popup-container {
      padding: 20px;
    }
    
    .auth-popup-card {
      border-radius: 20px;
      max-width: 100%;
    }
    
    .auth-card-inner {
      padding: 36px 28px;
    }
    
    .auth-card-title {
      font-size: 1.5rem;
    }
  }
  
@media (max-width: 576px) {
  .auth-popup-container {
    padding: 16px;
  }
  
  .auth-card-inner {
    padding: 32px 24px;
  }
  
  .auth-card-title {
    font-size: 1.375rem;
  }
  
  .auth-popup-card .wizard > .steps {
    display: none;
  }
  
  .auth-popup-card .wizard > .steps a {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .auth-popup-card select.form-control {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    background-image: none;
    padding-right: 16px;
  }
}
  
  