:root {
    --auth-bg: #07070a;
    --auth-border: #35243f;
    --auth-green: #8cff00;
    --auth-muted: #9d94a7;
    --auth-panel: #100c15;
    --auth-panel2: #17101f;
    --auth-purple: #c150ff;
    --auth-text: #f7f3fa;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--auth-text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(
            rgba(5, 3, 8, .74),
            rgba(5, 3, 8, .84)
        ),
        url('/admin/assets/wicked-witch-login-bg.webp')
        center center / cover no-repeat fixed;
}

.account-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.account-auth-inner {
    width: min(100%, 460px);
    transform: translateX(clamp(150px, 14vw, 260px));
}

.account-card {
    width: 100%;
    padding: 30px;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(193, 80, 255, .07),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            var(--auth-panel2),
            var(--auth-panel)
        );
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .38),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.account-card h1 {
    margin: 0 0 24px;
    color: var(--auth-green);
    font-size: 30px;
    font-weight: 900;
}

.account-card form {
    display: grid;
    gap: 12px;
}

.account-card label {
    color: #e5dcea;
    font-size: 15px;
    font-weight: 700;
}

.account-card input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #352b3e;
    border-radius: 10px;
    outline: 0;
    background: #0a080d;
    color: #fff;
    font-size: 16px;
    transition:
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.account-card input:focus {
    border-color: rgba(193, 80, 255, .72);
    background: #0d0911;
    box-shadow: 0 0 0 3px rgba(193, 80, 255, .10);
}

.account-card button {
    width: 100%;
    height: 49px;
    margin-top: 12px;
    border: 1px solid rgba(140, 255, 0, .42);
    border-radius: 10px;
    background:
        linear-gradient(135deg, #7fe600, #56b800);
    color: #0b1204;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(140, 255, 0, .12);
    transition:
        filter .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.account-card button:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 34px rgba(140, 255, 0, .18);
}

.account-card button:active {
    transform: translateY(1px);
}

.account-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 82, 110, .34);
    border-radius: 10px;
    background: rgba(255, 82, 110, .08);
    color: #ff9aaa;
    font-size: 14px;
    font-weight: 700;
}

.account-link {
    display: block;
    margin-top: 20px;
    color: #d6b6ee;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.account-link:hover {
    color: var(--auth-green);
}

.account-footer {
    width: 100%;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #b6aabe;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.account-footer img {
    display: block;
    width: 118px;
    height: auto;
    flex: 0 0 auto;
}

.account-footer-copy {
    color: #b6aabe;
    white-space: nowrap;
}

.account-footer-copy strong {
    color: #bdff34;
    font-weight: 700;
}

@media (max-width: 760px) {
    .account-auth {
        padding: 16px;
    }

    .account-auth-inner {
        transform: none;
    }
}

@media (max-width: 520px) {
    .account-card {
        padding: 24px 20px;
    }

    .account-footer {
        gap: 8px;
    }

    .account-footer img {
        width: 92px;
    }

    .account-footer-copy {
        white-space: normal;
    }
}
