:root {
    --auth-bg: #0b0f17;
    --auth-surface: #121824;
    --auth-border: #222e45;
    --auth-text: #f1f5f9;
    --auth-muted: #94a3b8;
    --auth-blue: #3b82f6;
    --auth-blue-hover: #2563eb;
    --auth-blue-dim: rgba(59, 130, 246, 0.12);
}

* {
    box-sizing: border-box;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.13), transparent 32rem),
        radial-gradient(circle at 82% 88%, rgba(16, 185, 129, 0.07), transparent 28rem),
        var(--auth-bg);
    color: var(--auth-text);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.auth-main,
.auth-shell {
    min-height: 100vh;
}

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.auth-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: rgba(18, 24, 36, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.auth-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    color: var(--auth-text);
    font-size: 20px;
    letter-spacing: 0.08em;
}

.auth-brand span {
    margin-top: 2px;
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading h1 {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: 26px;
    font-weight: 700;
}

.auth-heading p,
.auth-footer {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

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

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

.auth-field input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    outline: none;
    background: var(--auth-bg);
    color: var(--auth-text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
    color: #64748b;
}

.auth-field input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px var(--auth-blue-dim);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 20px;
    color: var(--auth-muted);
    font-size: 12px;
    cursor: pointer;
}

.auth-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--auth-blue);
}

.auth-submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover {
    background: var(--auth-blue-hover);
    transform: translateY(-1px);
}

.auth-help {
    margin: 18px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    text-align: center;
}

.auth-help a {
    color: var(--auth-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-help a:hover {
    text-decoration: underline;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.auth-alert-error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
}

.auth-alert-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
}

.auth-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

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