/* Baby World — admin authentication pages */

:root {
    --auth-brand: #f54480;
    --auth-brand-2: #7b2ff7;
    --auth-ink: #1d2433;
    --auth-muted: #6b7789;
    --auth-line: #e6e9ef;
}

body.auth-body {
    background: #f4f6fb;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--auth-ink);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 12% 8%, rgba(245, 68, 128, .10), transparent 62%),
        radial-gradient(760px 460px at 92% 96%, rgba(123, 47, 247, .10), transparent 60%),
        #f4f6fb;
}

/* soft dot texture, no imagery */
.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(29, 36, 51, .05) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 960px;
    display: flex;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(29, 36, 51, .12), 0 2px 6px rgba(29, 36, 51, .06);
}

/* ---------- left brand panel ---------- */
.auth-brand-panel {
    width: 42%;
    flex: 0 0 42%;
    padding: 44px 38px;
    color: #fff;
    background: linear-gradient(150deg, var(--auth-brand) 0%, var(--auth-brand-2) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    right: 40px;
    top: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.auth-logo-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 26px;
    align-self: flex-start;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.auth-logo-badge img {
    max-height: 42px;
    max-width: 168px;
    display: block;
}

.auth-logo-badge .auth-logo-text {
    font-weight: 700;
    font-size: 17px;
    color: var(--auth-brand);
    letter-spacing: -.2px;
}

.auth-brand-panel h2 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -.4px;
}

.auth-brand-panel .auth-brand-sub {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .86);
    margin-bottom: 30px;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .95);
    margin-bottom: 16px;
}

.auth-feature-list li i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.auth-brand-foot {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    padding-top: 26px;
}

/* ---------- right form panel ---------- */
.auth-form-panel {
    width: 58%;
    flex: 1 1 58%;
    padding: 52px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-panel .auth-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--auth-brand);
    margin-bottom: 8px;
}

.auth-form-panel h1 {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 6px;
    color: var(--auth-ink);
}

.auth-form-panel .auth-lead {
    font-size: 14px;
    color: var(--auth-muted);
    margin-bottom: 26px;
}

.auth-alert {
    background: #fdecef;
    border: 1px solid #f7c9d3;
    color: #b32744;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.auth-alert.is-success {
    background: #e9f8f1;
    border-color: #bce6d3;
    color: #157a52;
}

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

.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap>i.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b6;
    font-size: 14px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #fbfcfe;
    padding: 0 44px 0 42px;
    font-size: 14.5px;
    color: var(--auth-ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.auth-input-wrap input::placeholder {
    color: #a8b1c1;
}

.auth-input-wrap input:focus {
    outline: none;
    background: #fff;
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(245, 68, 128, .12);
}

.auth-input-wrap input.is-invalid {
    border-color: #df3554;
    background: #fffafb;
}

.auth-pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #9aa5b6;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.auth-pw-toggle:hover {
    color: var(--auth-brand);
    background: #f6f7fa;
}

.auth-field-error {
    display: block;
    color: #df3554;
    font-size: 12.5px;
    margin-top: 6px;
}

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

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--auth-muted);
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-brand);
    cursor: pointer;
}

.auth-help-text {
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-brand), var(--auth-brand-2));
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, opacity .15s;
    box-shadow: 0 8px 22px rgba(245, 68, 128, .28);
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(245, 68, 128, .34);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: .7;
    cursor: default;
    transform: none;
}

.auth-secure-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    font-size: 12.5px;
    color: var(--auth-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-secure-note i {
    color: #16b47f;
}

/* generic card used by password-reset / verify views */
.auth-page .card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(29, 36, 51, .10);
}

.auth-page .card-header {
    background: #fff;
    border-bottom: 1px solid var(--auth-line);
    font-weight: 700;
    font-size: 16px;
    padding: 18px 22px;
}

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

    .auth-brand-panel {
        width: 100%;
        flex: none;
        padding: 30px 30px 26px;
    }

    .auth-brand-panel h2 {
        font-size: 21px;
    }

    .auth-brand-panel .auth-brand-sub {
        margin-bottom: 20px;
    }

    .auth-feature-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
        margin-bottom: 0;
    }

    .auth-feature-list li {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .auth-feature-list li i {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .auth-brand-foot {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        padding: 32px 30px 34px;
    }
}

@media (max-width: 575px) {
    .auth-page {
        padding: 16px 12px;
    }

    .auth-form-panel {
        padding: 26px 20px 28px;
    }

    .auth-brand-panel {
        padding: 24px 20px 20px;
    }

    .auth-form-panel h1 {
        font-size: 23px;
    }
}
