/* Login / Register redesign. Scoped to body.rd-auth. Keeps the existing form markup. */
body.rd-auth {
    --g: #12d66f; --gd: #0aa857; --bg: #04141a; --bg2: #071f27; --card: #0a2a33; --ink: #0b1f27; --muted: #5b6f77;
    background: #fff;
}
.rd-auth .rd-auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.rd-auth .rd-auth-form { display: flex; flex-direction: column; padding: 28px clamp(24px, 6vw, 84px); background: #fff; }
.rd-auth .rd-auth-top { display: flex; align-items: center; justify-content: space-between; }
.rd-auth .rd-auth-logo img { height: 50px; }
.rd-auth .rd-auth-back { font-size: 14px; font-weight: 600; color: var(--muted); }
.rd-auth .rd-auth-back:hover { color: var(--gd); }
.rd-auth .rd-auth-body { width: 100%; max-width: 480px; margin: 40px auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.rd-auth .rd-auth-foot { text-align: center; font-size: 13px; color: #8aa0a6; padding-top: 16px; }

/* Headings & text */
.rd-auth .nk-block-head { margin-bottom: 26px; }
.rd-auth .nk-block-title { color: var(--ink); font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; line-height: 1.15; }
.rd-auth .nk-block-des p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.rd-auth .form-label, .rd-auth label { color: var(--ink); font-weight: 600; font-size: 14px; }

/* Card wrapper used by register: flatten it */
.rd-auth .card.card-bordered { border: 0; box-shadow: none; background: transparent; }
.rd-auth .card-inner, .rd-auth .card-inner-lg { padding: 0 !important; }

/* Inputs */
.rd-auth .form-control, .rd-auth select.form-control, .rd-auth .form-select, .rd-auth textarea {
    border: 1px solid #d6e3e0; border-radius: 12px; background: #f7fbfa; color: var(--ink); min-height: 50px; padding: 12px 16px; transition: all .2s; }
.rd-auth .form-control-lg { min-height: 54px; }
.rd-auth .form-control:focus, .rd-auth .form-select:focus { border-color: var(--g); background: #fff; box-shadow: 0 0 0 4px rgba(18, 214, 111, .15); }
.rd-auth .form-control::placeholder { color: #93a6ab; }
.rd-auth .form-icon { color: #8aa0a6; }
.rd-auth .form-icon:hover { color: var(--gd); }

/* Buttons & links */
.rd-auth .btn-primary, .rd-auth button[type="submit"].btn {
    background: var(--g) !important; border-color: var(--g) !important; color: #03140d !important; font-weight: 700; border-radius: 12px; transition: all .25s; }
.rd-auth .btn-primary:hover, .rd-auth button[type="submit"].btn:hover { background: #3ee58d !important; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(18, 214, 111, .32); }
.rd-auth .btn-block { width: 100%; }
.rd-auth a, .rd-auth .link-primary { color: var(--gd); }
.rd-auth a:hover, .rd-auth .link-primary:hover { color: var(--g); }
.rd-auth .form-note-s2 { color: var(--muted); }
.rd-auth .form-note-s2 a { font-weight: 700; }
.rd-auth .custom-control-input:checked ~ .custom-control-label::before { background: var(--g); border-color: var(--g); }
.rd-auth .alert { border-radius: 12px; }

/* Brand panel */
.rd-auth .rd-auth-brand { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 60px clamp(30px, 5vw, 80px); color: #b7c9c8;
    background: radial-gradient(700px 420px at 90% 10%, rgba(18, 214, 111, .22), transparent 60%), radial-gradient(500px 300px at 0 100%, rgba(18, 214, 111, .1), transparent 60%), linear-gradient(180deg, #03100f, var(--bg)); }
.rd-auth .rd-auth-brand::before { content: ""; position: absolute; inset: 0; background: url('/front/images/ba1.jpeg') center/cover; opacity: .05; mix-blend-mode: luminosity; }
.rd-auth .rd-auth-brand-inner { position: relative; max-width: 480px; }
.rd-auth .rd-auth-brand-logo img { height: 52px; margin-bottom: 40px; }
.rd-auth .rd-auth-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13px; color: #bff3d8; background: rgba(18, 214, 111, .1); border: 1px solid rgba(18, 214, 111, .25); }
.rd-auth .rd-auth-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }
.rd-auth .rd-auth-brand h2 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; font-weight: 700; margin: 20px 0 16px; }
.rd-auth .rd-auth-brand h2 span { color: var(--g); display: block; }
.rd-auth .rd-auth-brand p { font-size: 16px; line-height: 1.7; color: #9fb6b5; }
.rd-auth .rd-auth-card { margin: 28px 0; padding: 20px 22px; border-radius: 18px; background: rgba(10, 42, 51, .85); border: 1px solid rgba(18, 214, 111, .25); }
.rd-auth .rd-auth-card small { display: block; color: #8aa3a2; font-size: 12px; }
.rd-auth .rd-auth-card b { color: #fff; font-size: 28px; }
.rd-auth .rd-auth-card em { font-style: normal; color: var(--g); font-size: 13px; font-weight: 700; margin-left: 6px; }
.rd-auth .rd-auth-card svg { width: 100%; height: 70px; display: block; margin-top: 10px; }
.rd-auth .rd-auth-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rd-auth .rd-auth-brand li { color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.rd-auth .rd-auth-brand li i { color: var(--g); font-size: 20px; }

@media (max-width: 991px) {
    .rd-auth .rd-auth-split { grid-template-columns: 1fr; }
    .rd-auth .rd-auth-brand { display: none; }
    .rd-auth .rd-auth-body { margin: 28px auto; }
}
.rd-auth .rd-auth-brand-logo { display: block; }
.rd-auth .link, .rd-auth .link-sm, .rd-auth .form-label-group a, .rd-auth .link-primary, .rd-auth .link-primary:not(:hover) { color: var(--gd) !important; font-weight: 600; }
.rd-auth .form-label-group a:hover { color: var(--g) !important; }
