:root {
    --auth-green: #1bbd68;
    --auth-green-dark: #159653;
    --auth-orange: #ff7a00;
    --auth-ink: #151922;
    --auth-font: "Plus Jakarta Sans", system-ui, sans-serif;
    --auth-radius: 18px;
    --auth-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body.auth-body {
    font-family: var(--auth-font);
    color: #fff;
    background: var(--auth-ink);
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 122, 0, 0.5), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(27, 189, 104, 0.4), transparent 50%),
        linear-gradient(160deg, #151922 0%, #1e2433 50%, #1a2e28 100%);
}

.auth-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--auth-radius);
    padding: 2rem 1.75rem 1.75rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--auth-shadow);
}

.auth-card--wide {
    max-width: 460px;
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    min-width: 0;
    flex: 1;
}

.auth-brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.auth-brand__text {
    min-width: 0;
}

.auth-brand__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-brand__sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

.auth-head {
    margin-bottom: 1.5rem;
}

.auth-head__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(27, 189, 104, 0.25), rgba(255, 122, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ef0be;
}

.auth-head__title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-head__subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.auth-alert {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.auth-alert--error {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffb8c0;
}

.auth-alert--success {
    background: rgba(27, 189, 104, 0.18);
    border: 1px solid rgba(27, 189, 104, 0.35);
    color: #9ef0be;
}

.auth-alert--info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.auth-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.4rem;
}

.auth-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 11px;
    padding: 0.72rem 0.9rem;
    font-size: 0.95rem;
}

.auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--auth-green);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(27, 189, 104, 0.2);
}

.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.82rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-family: var(--auth-font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.auth-btn--primary {
    background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
    color: #fff;
    box-shadow: 0 8px 22px rgba(27, 189, 104, 0.3);
}

.auth-btn--primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #fff;
}

.auth-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #fff;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.auth-logout-icon {
    font-size: 2.5rem;
    color: #9ef0be;
    margin-bottom: 0.5rem;
}

.auth-countdown {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .auth-head__title {
        font-size: 1.25rem;
    }
}
