  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --link: var(--adminuiux-theme-1);
    --cream: var(--adminuiux-theme-1-text);
    --gold: #c2c6ca;
    --gold-light: #dee2e6;
    --muted: #8a8278;
    /* --muted: #808080; */
    --surface: #faf7f2;
    --border: #dee2e6;
    --error: #c0392b;
    --rgba: 194,198,202;
  }

  html, body {
    height: 100%;
    font-family: var(--bs-body-font-family);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    overflow: hidden;
  }


  .form-container {
    display: grid;
    place-items: center;
    min-height: 100vh;
  }

  .form-panel {
    width: 400px;
    margin: 0 auto;
  }
  /* ── FORM HEADER ───────────────────────────── */
  .form-header { margin-bottom: 26px; 
    text-align: center;
}

  .form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 300;
    color: var(--adminuiux-theme-1);
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .form-sub {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 300;
  }

  /* ── INPUT FIELDS ──────────────────────────── */
  .field {
    margin-bottom: 20px;
  }

  .field-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
  }

  .input-wrap {
    position: relative;
  }

  .input-wrap .icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    width: 16px; height: 16px;
    pointer-events: none;
    transition: color 0.2s;
  }

  .field-input {
    width: 100%;
    height: 45px;
    padding: 0 16px 0 44px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--adminuiux-theme-1);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }

  .field-input:focus {
    border-color: var(--adminuiux-theme-1);
    box-shadow: 0 0 0 4px rgba(var(--rgba), 0.12);
  }

  .field-input:focus + .input-focus-line { transform: scaleX(1); }

  .field-input::placeholder { color: #c4bbb0; }

  .toggle-pw {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    display: flex; align-items: center;
    transition: color 0.2s;
  }
  .toggle-pw:hover { color: var(--adminuiux-theme-1); }

  /* ── FIELD ROW (name split) ────────────────── */
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }



  /* ── OPTIONS ROW ───────────────────────────── */
  .options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    margin-top: -4px;
  }

  .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .remember input[type="checkbox"] {
    appearance: none;
    width: 17px; height: 17px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
  }

  .remember input[type="checkbox"]:checked {
    background: var(--adminuiux-theme-1);
    border-color: var(--adminuiux-theme-1);
  }

  .remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1.5px;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-left: none; border-top: none;
    transform: rotate(40deg);
  }

  .remember-label {
    font-size: 13px;
    color: var(--muted);
    user-select: none;
  }

  .forgot-link {
    font-size: 13px;
    color: var(--adminuiux-theme-1);
    text-decoration: none !important;
    font-weight: 500;
    transition: opacity 0.2s;
  }
  .forgot-link:hover { opacity: 0.7; }

  /* ── SUBMIT BUTTON ─────────────────────────── */
  .btn-submit {
    width: 100%;
    height: 45px;
    background: var(--adminuiux-theme-1);
    color: var(--adminuiux-theme-1-text);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }

  .btn-submit::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(201,169,110,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,13,13,0.2); }
  .btn-submit:hover::before { opacity: 1; }
  .btn-submit:active { transform: translateY(0); }

  .btn-arrow {
    width: 18px; height: 18px;
    border: 1.5px solid rgba(245,240,232,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }


    /* ── DIVIDER ───────────────────────────────── */
  .divider {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px;
  }
  .divider-line { flex: 1; height: 1px; background: var(--border); }
  .divider-text { font-size: 11.5px; color: var(--muted); letter-spacing: 0.05em; }



  /* ── SOCIAL BUTTONS ────────────────────────── */
  .social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }

  .btn-social {
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--bs-link-color);
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .btn-social:hover { border-color: var(--adminuiux-theme-1); box-shadow: 0 3px 12px rgba(0,0,0,0.06); }

  .btn-social img { width: 18px; height: 18px; }




  /* ── TERMS ─────────────────────────────────── */
  .terms-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
  }

  .terms-note a { color: var(--adminuiux-theme-1); text-decoration: none; }





  
  
  /* ── DROPDOWN ──────────────────────────────── */
  .select-wrap { position: relative; }

  .select-wrap .icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    width: 16px; height: 16px;
    pointer-events: none;
  }

  .field-select {
    width: 100%;
    height: 45px;
    padding: 0 44px 0 44px;
    background: transparent;
    border: 1.5px solid var(--adminuiux-theme-1);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--adminuiux-theme-1);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .field-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,169,110,0.12);
  }

  .field-select.placeholder { color: var(--adminuiux-theme-1); }

  .select-chevron {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    display: flex; align-items: center;
    transition: transform 0.2s;
  }

  .select-wrap:focus-within .select-chevron {
    transform: translateY(-50%) rotate(180deg);
  }





  /* ── DATE PICKER ───────────────────────────── */
  .date-input-wrap { position: relative; }

  .date-input-wrap .icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    width: 16px; height: 16px;
    pointer-events: none;
    z-index: 1;
  }

  .date-input-wrap .spinner {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    width: 16px; height: 16px;
    pointer-events: none;
    z-index: 1;
  }

  .field-date {
    width: 100%;
    height: 45px;
    padding: 0 16px 0 44px;
    background: transparent;
    border: 1.5px solid var(--adminuiux-theme-1);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--adminuiux-theme-1);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .field-date:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,169,110,0.12);
  }

  .field-date::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 14px;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .field-date.has-value { color: var(--adminuiux-theme-1); }
  .field-date:not(.has-value) { color: #c4bbb0; }

  .cal-trigger {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    display: flex; align-items: center;
  }




