:root {
      --green-900: #003a00;
      --green-800: #005200;
      --green-700: #006400;
      --green-600: #1a7d1a;
      --green-500: #2e9e2e;
      --green-400: #4ab54a;
      --green-100: #e6f5e6;
      --green-50:  #f2faf2;
      --ink:       #141414;
      --ink-mid:   #3a3a3a;
      --ink-muted: #6b6b6b;
      --surface:   #fafaf8;
      --white:     #ffffff;
      --border:    rgba(0,0,0,0.08);
      --font-display: 'Playfair Display', Georgia, serif;
      --font-sans:    'DM Sans', system-ui, sans-serif;
      --radius-sm: 6px;
      --radius-md: 12px;
      --radius-lg: 20px;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
      --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
      --shadow-lg: 0 20px 60px rgba(0,0,0,0.13);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; margin: 0; padding: 0; }

    body {
      font-family: var(--font-sans);
      background: var(--surface);
      color: var(--ink-mid);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    body::-webkit-scrollbar { display: none; }

    h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--ink); }
    a { text-decoration: none; transition: color 0.25s; }
    a:hover { color: var(--green-600); }

    /* ── PRELOADER ── */
    .preloader {
      position: fixed; inset: 0; display: flex;
      justify-content: center; align-items: center;
      z-index: 99999; background: var(--white);
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }
    .preloader.hidden { opacity: 0; visibility: hidden; }
    .preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
    .preloader-logo { width: 90px; animation: pulse 1.5s infinite; }
    .preloader-bar { width: 80px; height: 2px; background: var(--green-100); border-radius: 2px; overflow: hidden; }
    .preloader-bar::after {
      content: ""; display: block; width: 40%; height: 100%;
      background: var(--green-600); animation: bar-slide 1.2s ease infinite;
    }
    @keyframes pulse { 0%,100%{transform:scale(1);opacity:.75} 50%{transform:scale(1.06);opacity:1} }
    @keyframes bar-slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

    /* ── NAVBAR ── */
    .custom-navbar {
      position: fixed; top: 0; left: 0; width: 100%;
      z-index: 1030; padding: 1.25rem 0;
      background: transparent; transition: all 0.4s ease;
    }
    .custom-navbar.scrolled {
      background: var(--white);
      box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.06);
      padding: 0.75rem 0;
    }
    .logo { height: auto; width: auto; transition: opacity 0.4s ease; }
    .logo-light { opacity: 1; max-height: 90px; position: relative; }
    .logo-dark  { opacity: 0; max-height: 56px; position: absolute; top: 0; left: 0; }
    .custom-navbar .navbar-brand { position: relative; }
    .custom-navbar.scrolled .logo-light { opacity: 0; position: absolute; }
    .custom-navbar.scrolled .logo-dark  { opacity: 1; position: relative; }
    .logo-dark, .logo-light { filter: none !important; -webkit-filter: none !important; }

    .custom-navbar .nav-link, .custom-navbar .nav-link-active {
      font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem;
      letter-spacing: 0.02em; color: rgba(255,255,255,0.92);
      padding: 0.5rem 1.1rem; margin: 0 2px;
      border-radius: var(--radius-sm); transition: all 0.25s;
    }
    .custom-navbar.scrolled .nav-link,
    .custom-navbar.scrolled .nav-link-active { color: var(--ink-mid); }
    .custom-navbar .nav-link:hover,
    .custom-navbar .nav-link-active:hover { color: var(--green-600) !important; }
    .custom-navbar .dropdown-menu {
      border: none; border-radius: var(--radius-md); background: var(--white);
      box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
      padding: 0.5rem; min-width: 220px; margin-top: 0.5rem;
    }
    .custom-navbar .dropdown-item {
      font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
      color: var(--ink-mid); padding: 0.65rem 1rem;
      border-radius: var(--radius-sm); transition: all 0.2s;
    }
    .custom-navbar .dropdown-item:hover { background: var(--green-50); color: var(--green-700); padding-left: 1.3rem; }

    .mobile-toggler {
      background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
      width: 44px; height: 40px; border-radius: var(--radius-sm);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; backdrop-filter: blur(8px); position: relative;
    }
    .custom-navbar.scrolled .mobile-toggler { background: var(--green-50); border-color: var(--border); }
    .mobile-toggler-icon, .mobile-toggler-icon::before, .mobile-toggler-icon::after {
      content: ""; position: absolute; width: 22px; height: 2px;
      background: #fff; border-radius: 2px; transition: 0.3s;
    }
    .custom-navbar.scrolled .mobile-toggler-icon,
    .custom-navbar.scrolled .mobile-toggler-icon::before,
    .custom-navbar.scrolled .mobile-toggler-icon::after { background: var(--ink); }
    .mobile-toggler-icon { top: 50%; transform: translateY(-50%); }
    .mobile-toggler-icon::before { top: -7px; }
    .mobile-toggler-icon::after  { top:  7px; }

    .offcanvas.offcanvas-top {
      height: auto; max-height: 50vh; background: var(--white);
      border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }
    .offcanvas-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
    .offcanvas-title  { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
    .offcanvas-body   { padding: 1rem 1.5rem 2rem; }
    #mobileOffcanvas .nav-link { color: var(--green-700) !important; font-weight: 600; }
    .close-float {
      width: 38px; height: 38px; background: var(--green-50); border: 1px solid var(--border);
      border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
      font-size: 18px; color: var(--green-700); cursor: pointer; transition: 0.2s;
    }
    .close-float:hover { background: var(--green-100); transform: scale(1.05); }

    /* ── PAGE BANNER ── */
    .page-banner {
      position: relative; height: 38vh; min-height: 280px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden; background: var(--green-900);
    }
    .page-banner-bg {
      position: absolute; inset: 0;
      background-image: url('img/revolution-slider/scroll23.jpg');
      background-size: cover; background-position: center;
      filter: brightness(0.3) saturate(0.7);
      transform: scale(1.04); transition: transform 10s ease;
    }
    .page-banner:hover .page-banner-bg { transform: scale(1.07); }
    .page-banner::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(0,40,0,0.5) 0%, rgba(0,15,0,0.2) 50%, rgba(0,0,0,0.7) 100%);
      z-index: 1;
    }
    .page-banner-content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; }
    .page-banner-eyebrow {
      display: inline-flex; align-items: center; gap: 12px;
      font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: rgba(255,255,255,0.5); margin-bottom: 1rem;
    }
    .page-banner-eyebrow::before, .page-banner-eyebrow::after {
      content: ""; display: block; width: 28px; height: 1px; background: var(--green-400);
    }
    .page-banner h1 {
      font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem);
      font-weight: 700; line-height: 1.1; color: var(--white); margin: 0 0 1.25rem;
    }
    .page-banner h1 em { font-style: italic; color: var(--green-400); }
    .breadcrumb-wrap {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
      border-radius: 50px; padding: 0.45rem 1.25rem;
      font-family: var(--font-sans); font-size: 0.8rem;
    }
    .breadcrumb-wrap a { color: rgba(255,255,255,0.55); }
    .breadcrumb-wrap a:hover { color: var(--green-400); }
    .breadcrumb-wrap .sep { color: rgba(255,255,255,0.3); }
    .breadcrumb-wrap .current { color: rgba(255,255,255,0.85); font-weight: 500; }

    /* ── AUTH SECTION ── */
    .auth-section {
      flex: 1; padding: 80px 0 100px;
      background: var(--surface); position: relative;
    }
    .auth-section::before {
      content: ""; position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006400' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      pointer-events: none;
    }

    .auth-wrap {
      position: relative; max-width: 1040px; margin: 0 auto;
      display: grid; grid-template-columns: 5fr 7fr;
      border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
      animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
    }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Left panel */
    .auth-panel {
      background: var(--green-900); padding: 3.5rem 2.5rem;
      display: flex; flex-direction: column; justify-content: space-between;
      position: relative; overflow: hidden;
    }
    .auth-panel::before {
      content: ""; position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ab54a' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      pointer-events: none;
    }
    .auth-panel-deco {
      position: absolute; bottom: -60px; right: -60px;
      width: 240px; height: 240px; border-radius: 50%;
      background: radial-gradient(circle, rgba(74,181,74,0.18) 0%, transparent 70%);
    }
    .auth-panel-deco2 {
      position: absolute; top: -40px; left: -40px;
      width: 160px; height: 160px; border-radius: 50%;
      background: radial-gradient(circle, rgba(74,181,74,0.12) 0%, transparent 70%);
    }
    .auth-panel-logo { position: relative; z-index: 1; margin-bottom: 2rem; }
    .auth-panel-logo img { max-height: 60px; }
    .auth-panel-body { position: relative; z-index: 1; }
    .auth-panel-eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-400); margin-bottom: 1rem;
    }
    .auth-panel-eyebrow::before { content: ""; display: block; width: 20px; height: 2px; background: var(--green-400); border-radius: 2px; }
    .auth-panel h2 {
      font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 700; line-height: 1.2; color: var(--white); margin-bottom: 1rem;
    }
    .auth-panel h2 em { font-style: italic; color: var(--green-400); }
    .auth-panel p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 1.75rem; }
    .auth-panel-features { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
    .auth-panel-features li {
      display: flex; align-items: center; gap: 10px;
      font-size: 0.86rem; color: rgba(255,255,255,0.75); margin-bottom: 0.65rem;
    }
    .auth-panel-features li i { color: var(--green-400); font-size: 0.8rem; }
    .auth-panel-footer { position: relative; z-index: 1; margin-top: 2rem; }
    .auth-panel-footer p { font-family: var(--font-display); font-style: italic; font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }

    /* Right form panel */
    .auth-form-panel { background: var(--white); padding: 3rem 3rem 3.5rem; }
    .auth-form-head { margin-bottom: 1.75rem; }
    .auth-form-head .section-label {
      display: inline-flex; align-items: center; gap: 10px;
      font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); margin-bottom: 0.75rem;
    }
    .auth-form-head .section-label::before { content: ""; display: block; width: 20px; height: 2px; background: var(--green-600); border-radius: 2px; }
    .auth-form-head h3 {
      font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--ink); margin-bottom: 0.3rem;
    }
    .auth-form-head p { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }

    /* form row */
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* field */
    .field-group { margin-bottom: 1.1rem; }
    .field-label {
      display: block; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
      color: var(--ink-mid); letter-spacing: 0.04em; margin-bottom: 0.4rem;
    }
    .field-optional {
      font-weight: 400; font-size: 0.72rem; color: var(--ink-muted);
      letter-spacing: 0; margin-left: 4px;
    }
    .field-wrap { position: relative; }
    .field-wrap i.field-icon {
      position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
      color: var(--ink-muted); font-size: 0.85rem; pointer-events: none; transition: color 0.25s;
    }
    .field-input {
      width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem;
      font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink);
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-sm); outline: none; transition: all 0.25s; appearance: none;
    }
    .field-input:focus {
      border-color: var(--green-600); background: var(--white);
      box-shadow: 0 0 0 3px rgba(26,125,26,0.1);
    }
    .field-wrap:focus-within .field-icon { color: var(--green-600); }
    .field-input::placeholder { color: var(--ink-muted); opacity: 0.5; }

    /* select */
    select.field-input { cursor: pointer; }

    /* password toggle */
    .field-toggle {
      position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer; color: var(--ink-muted);
      font-size: 0.85rem; padding: 0; transition: color 0.2s;
    }
    .field-toggle:hover { color: var(--green-700); }

    /* password strength */
    .pwd-strength { margin-top: 0.5rem; }
    .pwd-strength-bar {
      height: 3px; border-radius: 3px; background: var(--border);
      overflow: hidden; margin-bottom: 0.3rem;
    }
    .pwd-strength-fill {
      height: 100%; width: 0%; border-radius: 3px; transition: width 0.4s ease, background 0.4s ease;
    }
    .pwd-strength-label { font-size: 0.72rem; color: var(--ink-muted); }

    /* terms */
    .terms-row { margin: 0.75rem 0 1.25rem; }
    .check-label {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 0.83rem; color: var(--ink-muted); cursor: pointer; user-select: none;
    }
    .check-label input[type="checkbox"] { display: none; }
    .check-box {
      width: 16px; height: 16px; min-width: 16px; border: 1.5px solid rgba(0,0,0,0.18);
      border-radius: 4px; background: var(--surface);
      display: flex; align-items: center; justify-content: center; transition: all 0.2s; margin-top: 1px;
    }
    .check-label input:checked ~ .check-box { background: var(--green-700); border-color: var(--green-700); }
    .check-label input:checked ~ .check-box::after {
      content: ""; display: block; width: 9px; height: 5px;
      border-left: 2px solid #fff; border-bottom: 2px solid #fff;
      transform: rotate(-45deg) translateY(-1px);
    }
    .check-label a { color: var(--green-700); font-weight: 500; }

    /* submit */
    .submit-btn {
      width: 100%; padding: 0.9rem 1.5rem;
      background: var(--green-700); color: var(--white);
      font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
      letter-spacing: 0.04em; border: none; border-radius: var(--radius-sm);
      cursor: pointer; transition: all 0.3s;
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .submit-btn::after { content: "→"; transition: transform 0.3s; }
    .submit-btn:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,100,0,0.3); }
    .submit-btn:hover::after { transform: translateX(4px); }
    .submit-btn:active { transform: translateY(0); }

    /* divider */
    .auth-divider {
      display: flex; align-items: center; gap: 12px;
      margin: 1.25rem 0; color: var(--ink-muted); font-size: 0.8rem;
    }
    .auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

    /* switch */
    .auth-switch { text-align: center; font-size: 0.88rem; color: var(--ink-muted); margin-top: 1.25rem; }
    .auth-switch a { color: var(--green-700); font-weight: 600; }
    .auth-switch a:hover { color: var(--green-500); }

    /* errors */
    .field-error { font-size: 0.75rem; color: #c0392b; margin-top: 0.3rem; display: none; }
    .field-group.has-error .field-error { display: block; }
    .field-group.has-error .field-input { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }

    .form-alert {
      padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
      font-size: 0.88rem; font-weight: 500; margin-bottom: 1.25rem; display: none;
    }
    .form-alert.success { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
    .form-alert.error   { background: #fdf0ef; color: #a93226; border: 1px solid #f5c6c2; }

    /* ── BRAND STRIP ── */
    .brand-strip {
      background: var(--green-50); border-top: 1px solid var(--green-100);
      border-bottom: 1px solid var(--green-100); padding: 1.25rem; text-align: center;
    }
    .brand-strip p { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--green-700); margin: 0; }
    .brand-strip i { margin-right: 0.5rem; color: var(--green-500); }

    /* ── FOOTER ── */
    .footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 4.5rem 0 2.5rem; position: relative; }
    .footer::before {
      content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, var(--green-700), var(--green-400), var(--green-700));
    }
    .footer h5 {
      font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
      letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem;
    }
    .footer-links { list-style: none; padding: 0; margin: 0; }
    .footer-links li { margin-bottom: 0.5rem; }
    .footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
    .footer-links a:hover { color: var(--green-400); }
    .footer .contact-info { list-style: none; padding: 0; margin: 0; }
    .footer .contact-info li {
      display: flex; align-items: flex-start; gap: 8px;
      font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 0.6rem;
    }
    .footer .contact-info i { color: var(--green-400); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
    .footer .contact-info a { color: rgba(255,255,255,0.55); }
    .footer .contact-info a:hover { color: var(--green-400); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; padding-top: 1.5rem; text-align: center; }
    .footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); margin: 0; }

    #back-top-wrapper { position: fixed; bottom: 2rem; right: 2rem; z-index: 99; display: none; }
    .back-to-top-btn {
      display: flex; align-items: center; justify-content: center;
      width: 44px; height: 44px; background: var(--green-700); color: var(--white) !important;
      border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-size: 0.9rem; transition: all 0.3s;
    }
    .back-to-top-btn:hover { background: var(--green-600); transform: translateY(-3px); }

    /* responsive */
    @media (max-width: 767px) {
      .auth-wrap { grid-template-columns: 1fr; }
      .auth-panel { display: none; }
      .auth-form-panel { padding: 2rem 1.5rem 2.5rem; }
      .form-row { grid-template-columns: 1fr; }
      .page-banner { height: 32vh; min-height: 230px; }
    }
    @media (max-width: 991px) {
      .auth-panel { padding: 2.5rem 1.75rem; }
      .auth-form-panel { padding: 2.5rem 2rem; }
      .form-row { grid-template-columns: 1fr; }
    }
    @media (min-width: 992px) { .logo-dark { max-height: 52px; } }