
:root {
    --auth-green: #00c853;
    --auth-green-dark: #008e42;
    --auth-text: #171717;
    --auth-muted: #777;
    --auth-border: #e0e4e2;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background: #f4f6f5;
    color: var(--auth-text);
}

.auth-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.auth-header-inner {
    max-width: 1320px;
    margin: auto;
    min-height: 76px;
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.auth-brand {
    color: var(--auth-green);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
}

.auth-back {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
}

.auth-main {
    min-height: calc(100vh - 150px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,.035);
}

.auth-intro {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #e7f9ee;
    color: var(--auth-green-dark);
}

.auth-intro h1 {
    font-size: 28px;
    margin: 0 0 10px;
    letter-spacing: -.8px;
}

.auth-intro p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--auth-muted);
    margin: 0;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.auth-input {
    display: block;
    width: 100%;
    min-height: 46px;
    border: 1px solid #dce1de;
    border-radius: 7px;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    color: #222;
    background: #fff;
    transition: border-color .2s;
}

.auth-input:focus {
    border-color: var(--auth-green);
    outline: 2px solid rgba(0,200,83,.12);
}

.auth-input::placeholder {
    color: #a0a0a0;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 72px;
}

.auth-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    font-size: 11px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
}

.auth-hint {
    color: #888;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 6px;
}

.auth-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: var(--auth-green);
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
}

.auth-submit:hover {
    background: #00b84d;
}

.auth-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 26px;
    padding-top: 22px;
    font-size: 13px;
    color: #777;
}

.auth-bottom a {
    color: var(--auth-green-dark);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.auth-alert {
    padding: 13px 15px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.auth-alert-error {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #f4cecb;
}

.auth-alert-success {
    color: #008d40;
    background: #e7f9ee;
    border: 1px solid #ccebd7;
}

.auth-footer {
    padding: 20px;
    text-align: center;
    font-size: 11px;
    color: #999;
}

@media (max-width: 600px) {
    .auth-header-inner {
        min-height: 65px;
        padding: 12px 18px;
    }

    .auth-brand {
        font-size: 21px;
    }

    .auth-main {
        padding: 25px 16px;
    }

    .auth-card {
        padding: 26px 22px;
        border-radius: 12px;
    }

    .auth-intro h1 {
        font-size: 25px;
    }
}

/* =========================================
   TOONLOKA BLACK EMERALD V7
   PREMIUM AUTHENTICATION
========================================= */

:root {
    --auth-green: #00c853;
    --auth-green-dark: #43e586;
    --auth-text: #f5f7f6;
    --auth-muted: #96a89e;
    --auth-border: #294638;
}

html {
    background: #080f0c;
    color-scheme: dark;
}

body.auth-body {
    background:
        radial-gradient(
            ellipse at 15% 30%,
            #173b28 0%,
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #080f0c,
            #0d1914
        );

    color: var(--auth-text);
    min-height: 100vh;
}

/* ===== HEADER ===== */

.auth-header {
    background: #0b1610;
    border-bottom: 1px solid #20382a;
}

.auth-header-inner {
    max-width: 1400px;
    min-height: 76px;
}

.auth-brand {
    color: #00df68;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.auth-back {
    color: #b9ccbf;
    background: #14271c;
    border: 1px solid #294638;
    border-radius: 7px;
    padding: 11px 16px;
    transition: all .2s ease;
}

.auth-back:hover {
    color: #43e586;
    border-color: #00c853;
}

/* ===== MAIN LAYOUT ===== */

.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 55px 24px;
    min-height: calc(100vh - 145px);
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1040px;
    border: 1px solid #294638;
    border-radius: 18px;
    background: #0d1914;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    overflow: hidden;
}

/* ===== MANGA ARTWORK ===== */

.auth-artwork {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    background: #10291c;
}

.auth-artwork::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;

    background-image:
        url('banners/hero-manga.png');

    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right center;
}

.auth-artwork::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(5,16,10,.98) 0%,
        rgba(5,16,10,.65) 23%,
        transparent 65%
    );
}

.auth-artwork-content {
    padding: 35px;
    width: 100%;
}

.auth-artwork-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #00df68;
    margin-bottom: 14px;
}

.auth-artwork-title {
    color: #f5f7f6;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.auth-artwork-description {
    color: #b9ccbf;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* ===== AUTH CARD ===== */

.auth-card {
    width: 100%;
    max-width: none;
    background: #0d1914;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 45px;
    align-self: center;
}

.auth-intro {
    text-align: left;
    margin-bottom: 30px;
}

.auth-icon {
    width: 52px;
    height: 52px;
    margin: 0 0 20px;
    border-radius: 13px;
    background: #173927;
    border: 1px solid #28553b;
    color: #43e586;
}

.auth-intro h1 {
    color: #f5f7f6;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.auth-intro p {
    color: #96a89e;
    font-size: 13px;
    line-height: 1.8;
}

/* ===== FORM ===== */

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    color: #dce9e1;
    font-weight: 600;
}

.auth-input {
    background: #11251b;
    color: #f5f7f6;
    border: 1px solid #345240;
    border-radius: 8px;
    min-height: 49px;
    font-size: 14px;
}

.auth-input::placeholder {
    color: #8fa99a;
}

.auth-input:focus {
    border-color: #00c853;
    outline: 2px solid rgba(0,200,83,.14);
}

.auth-input:-webkit-autofill {
    -webkit-text-fill-color: #f5f7f6;
    box-shadow: 0 0 0 1000px #11251b inset;
    caret-color: #f5f7f6;
}

.auth-password-wrap .auth-input {
    padding-right: 85px;
}

.auth-toggle {
    color: #96a89e;
}

.auth-toggle:hover {
    color: #43e586;
}

.auth-hint {
    color: #8fa99a;
    font-size: 11px;
}

/* ===== SUBMIT BUTTON ===== */

.auth-submit {
    background: #00c853;
    color: #06130d;
    min-height: 50px;
    border-radius: 8px;
    font-weight: 800;
    transition: background .2s ease;
}

.auth-submit:hover {
    background: #32e87b;
}

.auth-bottom {
    border-top: 1px solid #294638;
    color: #96a89e;
    margin-top: 28px;
}

.auth-bottom a {
    color: #43e586;
    font-weight: 700;
}

.auth-bottom a:hover {
    text-decoration: underline;
}

/* ===== ALERTS ===== */

.auth-alert-error {
    background: #321b1b;
    border: 1px solid #663737;
    color: #ffaaaa;
}

.auth-alert-success {
    background: #173927;
    border: 1px solid #28553b;
    color: #82f5b3;
}

/* ===== FOOTER ===== */

.auth-footer {
    color: #8fa99a;
    padding: 22px;
}

/* ===== ACCESSIBILITY ===== */

.auth-body a:focus-visible,
.auth-body button:focus-visible {
    outline: 2px solid #00df68;
    outline-offset: 4px;
}

/* ===== TABLET ===== */

@media (max-width: 900px) {

    .auth-card {
        padding: 30px;
    }

    .auth-artwork-content {
        padding: 24px;
    }

    .auth-main {
        padding: 35px 20px;
    }
}

/* ===== MOBILE ===== */

@media (max-width: 700px) {

    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 480px;
        border-radius: 14px;
    }

    .auth-artwork {
        min-height: 220px;
    }

    .auth-artwork::before {
        background-size: auto 120%;
        background-position: right center;
    }

    .auth-artwork-content {
        padding: 20px;
    }

    .auth-artwork-title {
        font-size: 23px;
    }

    .auth-artwork-description {
        display: none;
    }

    .auth-artwork-label {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .auth-main {
        padding: 22px 14px;
    }

    .auth-header-inner {
        min-height: 65px;
        padding: 12px 18px;
    }

    .auth-brand {
        font-size: 21px;
    }

    .auth-back {
        font-size: 11px;
        padding: 9px 12px;
    }

    .auth-input {
        font-size: 16px;
    }

    .auth-intro h1 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .auth-back,
    .auth-submit,
    .auth-input {
        transition: none;
    }
}
