@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Poppins:wght@300;400;500;600&display=swap');

[data-bs-theme-base="neutral"] {
  --tblr-gray-50: #fafafa;
  --tblr-gray-100: #f5f5f5;
  --tblr-gray-200: #e5e5e5;
  --tblr-gray-300: #d4d4d4;
  --tblr-gray-400: #a3a3a3;
  --tblr-gray-500: #737373;
  --tblr-gray-600: #525252;
  --tblr-gray-700: #404040;
  --tblr-gray-800: #262626;
  --tblr-gray-900: #171717;
  --tblr-gray-950: #0a0a0a;
}

:root {
  --gn-red: #CE1126;
  --gn-yellow: #FCD116;
  --gn-green: #009460;
  --gn-green-dark: #007a4e;
  --gn-dark: #1a3a2a;
  --gn-dark-lighter: #234a36;
}

.g-recaptcha {
  overflow: hidden;
  width: 298px;
  height: 74px;
}

.g-recaptcha iframe {
  margin: -1px 0px 0px -2px;
}

.logo-image {
  height: 4rem;
  width: auto;
}

/* ============================================
   AUTH LAYOUT - SPLIT SCREEN
   ============================================ */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* LEFT PANEL - Branding */
.auth-brand-panel {
  flex: 0 0 45%;
  background: var(--gn-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  display: flex;
  background: linear-gradient(90deg, var(--gn-red) 0%, var(--gn-red) 33.33%, var(--gn-yellow) 33.33%, var(--gn-yellow) 66.66%, var(--gn-green) 66.66%, var(--gn-green) 100%);
  z-index: 2;
}

.auth-brand-panel .brand-circle-1 {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(0,148,96,0.08);
  pointer-events: none;
}

.auth-brand-panel .brand-circle-2 {
  position: absolute;
  top: 40px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(252,209,22,0.06);
  pointer-events: none;
}

.auth-brand-panel .brand-circle-3 {
  position: absolute;
  bottom: 120px;
  left: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(206,17,38,0.05);
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.brand-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.brand-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.brand-icon-circle svg {
  width: 26px;
  height: 26px;
  stroke: var(--gn-yellow);
  fill: none;
  stroke-width: 1.5;
}

.brand-republic {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 18px;
  color: #fff;
}

.brand-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0 0 48px;
  max-width: 360px;
}

.brand-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}

.brand-stat {
  text-align: center;
}

.brand-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 500;
}

.brand-stat-value.red { color: var(--gn-red); }
.brand-stat-value.yellow { color: var(--gn-yellow); }
.brand-stat-value.green { color: var(--gn-green); }

.brand-stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.brand-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* RIGHT PANEL - Form */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
  overflow-y: auto;
}

[data-bs-theme="dark"] .auth-form-panel {
  background: var(--tblr-gray-900);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
}

[data-bs-theme="dark"] .auth-form-title {
  color: #f0f0f0;
}

.auth-form-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* Form fields */
.auth-field {
  margin-bottom: 20px;
}

.auth-field label,
.auth-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

[data-bs-theme="dark"] .auth-field label,
[data-bs-theme="dark"] .auth-label {
  color: #aaa;
}

.auth-field .form-control,
.auth-form-container .form-control {
  font-family: 'Poppins', sans-serif;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  height: auto;
}

[data-bs-theme="dark"] .auth-field .form-control,
[data-bs-theme="dark"] .auth-form-container .form-control {
  background: var(--tblr-gray-800);
  border-color: var(--tblr-gray-700);
  color: #f0f0f0;
}

.auth-field .form-control:focus,
.auth-form-container .form-control:focus {
  border-color: var(--gn-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,148,96,0.1);
  outline: none;
}

[data-bs-theme="dark"] .auth-field .form-control:focus,
[data-bs-theme="dark"] .auth-form-container .form-control:focus {
  background: var(--tblr-gray-900);
  box-shadow: 0 0 0 3px rgba(0,148,96,0.2);
}

.auth-field .input-group-flat .form-control {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.auth-field .input-group-flat .input-group-text {
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.auth-field .input-group-flat .form-control:focus + .input-group-text,
.auth-field .input-group-flat .form-control:focus ~ .input-group-text {
  border-color: var(--gn-green);
  background: #fff;
}

[data-bs-theme="dark"] .auth-field .input-group-flat .input-group-text {
  background: var(--tblr-gray-800);
  border-color: var(--tblr-gray-700);
}

.auth-password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.auth-forgot-link {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--gn-green);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-forgot-link:hover {
  color: var(--gn-green-dark);
}

/* Checkbox */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gn-green);
}

.auth-remember span,
.auth-remember label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #666;
}

/* Submit button */
.auth-submit-btn,
.auth-form-container .btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--gn-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s !important;
  letter-spacing: 0.3px;
  box-shadow: none !important;
}

.auth-submit-btn:hover,
.auth-form-container .btn-primary:hover {
  background: var(--gn-green-dark) !important;
  background-image: none !important;
}

/* Bottom links */
.auth-bottom-link {
  text-align: center;
  margin-top: 24px;
  font-family: 'Poppins', sans-serif;
}

.auth-bottom-link span {
  font-size: 13px;
  color: #888;
}

.auth-bottom-link a {
  font-size: 13px;
  color: var(--gn-green);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-bottom-link a:hover {
  color: var(--gn-green-dark);
}

/* Footer */
.auth-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

[data-bs-theme="dark"] .auth-footer {
  border-color: var(--tblr-gray-700);
}

.auth-footer p {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #aaa;
  margin: 0;
}

/* Card override for auth pages */
.auth-form-container .card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.auth-form-container .card-body {
  padding: 0;
}

.auth-form-container .card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
}

/* Alert override */
.auth-form-container .alert-success {
  background: rgba(0,148,96,0.08);
  border: 1px solid rgba(0,148,96,0.2);
  color: var(--gn-green-dark);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

/* Form check in auth */
.auth-form-container .form-check-input:checked {
  background-color: var(--gn-green);
  border-color: var(--gn-green);
}

.auth-form-container .form-check-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.auth-form-container .form-check-label a {
  color: var(--gn-green);
}

/* Row fields for register */
.auth-row {
  display: flex;
  gap: 16px;
}

.auth-row .auth-field {
  flex: 1;
}

/* Invalid feedback */
.auth-form-container .invalid-feedback {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

/* Social logins section */
.auth-form-container .card-footer {
  background: transparent;
  border-top: 1px solid #eee;
  padding: 16px 0 0 0;
  margin-top: 24px;
}

[data-bs-theme="dark"] .auth-form-container .card-footer {
  border-color: var(--tblr-gray-700);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media screen and (max-width: 991px) {
  .auth-brand-panel {
    flex: 0 0 40%;
    padding: 40px;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-subtitle {
    font-size: 13px;
    margin-bottom: 36px;
  }

  .brand-stats {
    gap: 20px;
  }

  .brand-stat-value {
    font-size: 22px;
  }

  .auth-form-panel {
    padding: 30px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media screen and (max-width: 767px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-brand-panel {
    flex: none;
    padding: 32px 24px 28px;
    min-height: auto;
  }

  .brand-icon-row {
    margin-bottom: 20px;
  }

  .brand-icon-circle {
    width: 42px;
    height: 42px;
  }

  .brand-icon-circle svg {
    width: 22px;
    height: 22px;
  }

  .brand-republic {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .brand-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .brand-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
    display: none;
  }

  .brand-circle-1,
  .brand-circle-2,
  .brand-circle-3 {
    display: none;
  }

  .brand-stats {
    gap: 16px;
  }

  .brand-stat-value {
    font-size: 20px;
  }

  .brand-stat-label {
    font-size: 10px;
  }

  .brand-stat-divider {
    height: 30px;
  }

  .auth-form-panel {
    padding: 28px 24px;
    flex: 1;
  }

  .auth-form-header {
    margin-bottom: 24px;
  }

  .auth-form-title {
    font-size: 20px;
  }

  .auth-form-desc {
    font-size: 13px;
  }

  .auth-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-footer {
    margin-top: 28px;
    padding-top: 16px;
  }

  .auth-form-container .card-title {
    font-size: 20px;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media screen and (max-width: 374px) {
  .auth-brand-panel {
    padding: 24px 16px 20px;
  }

  .auth-form-panel {
    padding: 24px 16px;
  }

  .brand-title {
    font-size: 20px;
  }

  .brand-stats {
    gap: 12px;
  }

  .brand-stat-value {
    font-size: 18px;
  }
}
