/* ==========================================================================
   Ethio One — Authentication pages
   --------------------------------------------------------------------------
   Loaded after dashlite.min.css / theme.css on layout/auth.blade.php.
   Covers login, register, OTP, 2FA, forgot/reset password.

   Palette: deep emerald #0B6E4F · gold #E0A100.

   The template shipped a bare split screen: a small form floating in a wide
   empty white column, beside an empty decorative panel of flat blue stripes.
   This turns the left into a proper centred card and gives the right panel
   an actual job — brand, proposition, and trust.
   ========================================================================== */

:root {
    --a-primary: #0579CC;
    --a-primary-600: #046bb8;
    --a-primary-700: #035a9e;
    --a-primary-050: #e6f2fb;
    --a-primary-100: #bfe0f7;

    --a-gold: #e0a100;

    --a-ink: #0d1b14;
    --a-body: #46564d;
    --a-muted: #7b8b81;
    --a-line: #e4ebe6;
    --a-surface: #ffffff;
    --a-canvas: #f3f7f4;

    --a-danger: #d4373c;
    --a-danger-050: #fdecec;

    --a-shadow-sm: 0 1px 3px rgba(13, 27, 20, .06);
    --a-shadow: 0 10px 30px rgba(13, 27, 20, .09);
    --a-shadow-lg: 0 24px 60px rgba(13, 27, 20, .16);
}

/* --------------------------------------------------------------------------
   1. Page shell
   -------------------------------------------------------------------------- */

body.pg-auth { background: var(--a-canvas); }

.nk-split-page {
    min-height: 100vh;
    align-items: stretch;
}

/* Left column — the form side */
.nk-split-page .nk-split-content.nk-auth-container {
    background: var(--a-canvas) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

@media (min-width: 992px) {
    .nk-split-page .nk-split-content.nk-auth-container {
        flex: 0 0 52%;
        max-width: 52%;
        padding: 3rem 3.5rem;
    }
}

/* The form itself becomes a card rather than floating type on white. */
.nk-auth-body {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 2.5rem 2.25rem;
    background: var(--a-surface);
    border: 1px solid var(--a-line);
    border-radius: 20px;
    box-shadow: var(--a-shadow);
}

@media (max-width: 575.98px) {
    .nk-auth-body { padding: 1.75rem 1.35rem; border-radius: 16px; }
}

.nk-auth-footer {
    width: 100%;
    max-width: 460px;
    margin: 1.25rem auto 0;
}

.nk-auth-footer p,
.nk-auth-footer .nav-link { color: var(--a-muted); font-size: .82rem; }

/* --------------------------------------------------------------------------
   2. Brand + headings
   -------------------------------------------------------------------------- */

/* DashLite ships light/dark logo variants and swaps them by opacity, so the
   "light" copy is invisible by default. Show exactly one. */
.brand-logo { padding-bottom: 1.5rem !important; text-align: left; }
.brand-logo .logo-img { max-height: 54px; }

.brand-logo .logo-light {
    opacity: 1 !important;
    position: static !important;
    display: inline-block !important;
}

.brand-logo .logo-dark { display: none !important; }

.nk-block-head { padding-bottom: 1.4rem; }

.nk-block-head .nk-block-title {
    font-size: 1.6rem !important;
    font-weight: 740;
    letter-spacing: -.028em;
    color: var(--a-ink);
    margin-bottom: .3rem;
}

.nk-block-des p {
    color: var(--a-muted);
    font-size: .93rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Form controls
   -------------------------------------------------------------------------- */

.form-group { margin-bottom: 1.15rem; }

.form-label,
.form-label-group .form-label {
    font-size: .84rem;
    font-weight: 650;
    color: var(--a-body);
    margin-bottom: .4rem;
}

/* DashLite sets a 6px radius on .form-control with higher specificity in some
   contexts, so these are qualified to keep every auth field consistent. */
.pg-auth .form-control,
.pg-auth .form-control-lg,
.pg-auth .form-select,
.pg-auth input.form-control,
.pg-auth select.form-select,
.form-control,
.form-control-lg,
.form-select {
    height: auto;
    padding: .8rem 1rem;
    font-size: .95rem;
    color: var(--a-ink);
    background: var(--a-surface);
    border: 1px solid var(--a-line);
    border-radius: 11px !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Input groups (e.g. the +251 phone prefix) must match the field radius. */
.pg-auth .input-group > :first-child,
.pg-auth .input-group-text:first-child {
    border-top-left-radius: 11px !important;
    border-bottom-left-radius: 11px !important;
}

.pg-auth .input-group > :last-child {
    border-top-right-radius: 11px !important;
    border-bottom-right-radius: 11px !important;
}

.form-control::placeholder { color: #a9b6ad; }

.form-control:hover:not(:focus) { border-color: #cfdcd4; }

.form-control:focus,
.form-select:focus {
    border-color: var(--a-primary);
    box-shadow: 0 0 0 4px var(--a-primary-050);
    background: var(--a-surface);
    outline: none;
}

/* Password reveal control sat flush against the field edge. */
.form-icon.form-icon-right {
    right: .35rem;
    width: 2.6rem;
    color: var(--a-muted);
    display: grid;
    place-items: center;
}

.form-icon.form-icon-right:hover { color: var(--a-primary); }

.form-control-wrap { position: relative; }

/* Validation */
.form-control.error,
.form-control.is-invalid {
    border-color: var(--a-danger);
    box-shadow: 0 0 0 4px var(--a-danger-050);
}

.invalid-feedback, .error { color: var(--a-danger); font-size: .82rem; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
    border-radius: 11px;
    font-weight: 660;
    letter-spacing: .01em;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn-lg { padding: .82rem 1.4rem; font-size: .98rem; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-success {
    background-color: var(--a-primary) !important;
    border-color: var(--a-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(11, 110, 79, .26);
}

.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
    background-color: var(--a-primary-700) !important;
    border-color: var(--a-primary-700) !important;
    box-shadow: 0 8px 22px rgba(11, 110, 79, .32);
    transform: translateY(-1px);
}

.btn-block { width: 100%; display: block; }

.btn:focus-visible, a:focus-visible {
    outline: 2px solid var(--a-primary);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. Links
   -------------------------------------------------------------------------- */

a, .link, .link-primary {
    color: var(--a-primary-700) !important;
    font-weight: 620;
}

a:hover, .link:hover, .link-primary:hover { color: var(--a-primary) !important; }

.nk-auth-footer a { font-weight: 600; }

/* Secondary note under the form ("New to Ethio One …") */
.form-note-s2 {
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--a-line);
    text-align: center;
    font-size: .9rem;
    color: var(--a-muted);
}

/* That note contained a full-size button inline with the sentence. */
.form-note-s2 .btn {
    display: inline-flex;
    align-items: center;
    margin-left: .4rem;
    padding: .42rem .9rem !important;
    font-size: .85rem !important;
    border-radius: 9px;
}

/* --------------------------------------------------------------------------
   6. Alerts
   -------------------------------------------------------------------------- */

.alert {
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: .89rem;
    padding: .8rem 1rem;
    margin-bottom: 1.1rem;
}

.alert-danger { background: var(--a-danger-050); border-color: #f5c8ca; color: #8f2429; }
.alert-success { background: var(--a-primary-050); border-color: var(--a-primary-100); color: var(--a-primary-700); }
.alert-warning { background: #fdf4de; border-color: #f2e0ae; color: #7a5a06; }

/* --------------------------------------------------------------------------
   7. Right panel — was an empty decorative stripe block
   -------------------------------------------------------------------------- */

.nk-split-content.nk-split-stretch,
.bg-abstract {
    position: relative;
    background-image: none !important;
    background-color: var(--a-primary) !important;
    background: linear-gradient(150deg, #07452f 0%, var(--a-primary-700) 45%, var(--a-primary) 100%) !important;
    overflow: hidden;
}

@media (min-width: 992px) {
    .nk-split-page .nk-split-content.nk-split-stretch { flex: 0 0 48%; max-width: 48%; }
}

/* Texture + glow, drawn in CSS so no extra request. */
.nk-split-content.nk-split-stretch::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 22% 26%, rgba(255, 255, 255, .07) 0 2px, transparent 2px),
        radial-gradient(circle at 68% 72%, rgba(255, 255, 255, .05) 0 2px, transparent 2px);
    background-size: 44px 44px, 70px 70px;
    pointer-events: none;
}

.nk-split-content.nk-split-stretch::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 161, 0, .3) 0%, rgba(224, 161, 0, 0) 68%);
    pointer-events: none;
}

/* Panel content (injected in the layout) */
.a-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 3.5rem 3rem;
    color: #fff;
}

.a-panel__logo {
    width: 130px;
    height: 130px;
    margin-bottom: 1.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.a-panel__logo img { width: 108px; height: 108px; object-fit: contain; }

.a-panel__title {
    margin: 0 0 .75rem;
    font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem);
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -.03em;
    color: #fff;
}

.a-panel__title span {
    background: linear-gradient(100deg, #ffd870, var(--a-gold) 60%, #ffca3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.a-panel__lead {
    max-width: 44ch;
    margin: 0 0 2rem;
    font-size: .98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .84);
}

.a-panel__list { list-style: none; padding: 0; margin: 0 0 2.25rem; }

.a-panel__list li {
    position: relative;
    padding-left: 2.1rem;
    margin-bottom: .95rem;
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .93);
}

.a-panel__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .05em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}

.a-panel__list li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: .42em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--a-gold);
    border-bottom: 2px solid var(--a-gold);
    transform: rotate(-45deg);
}

.a-panel__stats {
    display: flex;
    gap: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.a-panel__stat b {
    display: block;
    font-size: 1.5rem;
    font-weight: 780;
    letter-spacing: -.02em;
    color: var(--a-gold);
    font-variant-numeric: tabular-nums;
}

.a-panel__stat span {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
}

/* The decorative panel is supplementary; hide it where space is tight. */
@media (max-width: 991.98px) {
    .nk-split-content.nk-split-stretch { display: none !important; }
}

/* --------------------------------------------------------------------------
   8. Language switcher
   -------------------------------------------------------------------------- */

body .gtranslate_wrapper > div,
body .gtranslate_wrapper button,
body .gtranslate_wrapper .gt_selector,
body .gtranslate_wrapper select {
    background-color: var(--a-primary) !important;
    border-color: var(--a-primary) !important;
    border-radius: 10px !important;
}

body .gtranslate_wrapper,
body .gtranslate_wrapper * { --gt-bg: var(--a-primary) !important; }

/* --------------------------------------------------------------------------
   9. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .btn, .form-control { transition: none !important; }
    .btn:hover { transform: none !important; }
}
