/* Admin auth pages (login, forgot/reset password, OTP) — split-screen layout.
   Loaded only by layout/auth_layout.blade.php. */

:root {
    --auth-blue: #1E46A1;
    --auth-blue-dark: #132f73;
    --auth-orange: #EB6122;
    --auth-green: #5BB347;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-border: #d6dcea;
    --auth-bg: #f5f7fb;
}

body.auth-body {
    background: #fff;
    font-family: 'Open Sans', sans-serif;
    color: var(--auth-text);
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

/* ---------- brand panel ---------- */
.auth-brand {
    position: relative;
    flex: 0 0 46%;
    max-width: 46%;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(150deg, var(--auth-blue) 0%, var(--auth-blue-dark) 100%);
}

/* orange + green arcs echo the logo swoosh */
.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand::before {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -240px;
    border: 3px solid var(--auth-orange);
    opacity: .55;
}

.auth-brand::after {
    width: 380px;
    height: 380px;
    right: -150px;
    bottom: -170px;
    border: 2px solid var(--auth-green);
    opacity: .45;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 48px 56px;
}

.auth-logo-chip {
    display: inline-flex;
    align-self: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.auth-logo-chip img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.auth-brand-text {
    margin: auto 0;
    padding: 40px 0;
    max-width: 420px;
}

.auth-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--auth-orange);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 18px;
}

.auth-brand-text h1 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}

.auth-brand-text p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 28px;
}

.auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

.auth-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    font-size: 16px;
}

.auth-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin: 0;
}

/* ---------- form side ---------- */
.auth-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--auth-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 12px 40px rgba(30, 70, 161, .08);
}

.auth-head {
    margin-bottom: 26px;
}

.auth-head h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--auth-text);
    margin: 0 0 6px;
}

.auth-head p {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.55;
}

.auth-head p strong {
    color: var(--auth-text);
    word-break: break-all;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 6px;
}

.auth-card .form-control {
    height: 46px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--auth-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.auth-card .form-control::placeholder {
    color: #9aa3b2;
}

.auth-card .form-control:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(30, 70, 161, .15) !important;
    outline: none;
}

.auth-password {
    position: relative;
}

.auth-password .form-control {
    padding-right: 46px;
}

.auth-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 16px;
}

.auth-eye:hover,
.auth-eye:focus {
    color: var(--auth-blue);
    outline: none;
}

.auth-error {
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 4px 0 22px;
}

.auth-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-blue);
}

.auth-link:hover,
.auth-link:focus {
    color: var(--auth-orange);
    text-decoration: none;
}

.auth-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--auth-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.auth-btn:hover {
    background: var(--auth-blue-dark);
    color: #fff;
}

.auth-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 70, 161, .3);
}

.auth-foot {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-card .alert {
    border-radius: 10px;
    font-size: 14px;
}

.auth-card .g-recaptcha {
    margin-bottom: 8px;
}

/* OTP boxes (the .form-group wrapper is used by the OTP script) */
.auth-otp {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.auth-otp .otp-input {
    flex: 1 1 0;
    min-width: 0;
    height: 54px;
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-brand {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .auth-brand::before,
    .auth-brand::after,
    .auth-brand-text,
    .auth-copy {
        display: none;
    }

    .auth-brand-inner {
        padding: 18px 16px;
        align-items: center;
    }

    .auth-logo-chip {
        align-self: center;
        padding: 10px 14px;
    }

    .auth-logo-chip img {
        height: 32px;
    }

    .auth-main {
        align-items: flex-start;
        padding: 28px 16px 40px;
    }
}

@media (max-width: 420px) {
    .auth-card {
        padding: 26px 18px;
    }

    .auth-head h2 {
        font-size: 22px;
    }

    /* reCAPTCHA is a fixed 304px iframe */
    .auth-card .g-recaptcha {
        transform: scale(.9);
        transform-origin: 0 0;
    }

    .auth-otp {
        gap: 6px;
    }

    .auth-otp .otp-input {
        height: 48px;
        font-size: 20px;
    }
}
