:root {
    --auth-ink: #0f3552;
    --auth-muted: #5f7487;
    --auth-brand: #0f4c81;
    --auth-brand-deep: #0a3559;
    --auth-panel-line: #dce7ef;
    --auth-shadow: 0 26px 64px rgba(11, 42, 65, 0.16);
}

* {
    box-sizing: border-box;
}

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

body.auth-body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 14% 16%, rgba(31, 123, 105, 0.18), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(15, 76, 129, 0.18), transparent 22%),
        linear-gradient(135deg, #f4f8f3 0%, #edf4f7 45%, #e9eff5 100%);
}

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

.auth-stage {
    width: 100%;
    max-width: 420px;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--auth-shadow);
    padding: 34px;
    border: 1px solid var(--auth-panel-line);
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel::before {
    top: -92px;
    right: -72px;
    width: 220px;
    height: 220px;
    background: rgba(15, 76, 129, 0.06);
}

.auth-panel-brand,
.auth-panel-header,
.auth-field,
.auth-alert,
.auth-submit,
.auth-panel-footer {
    position: relative;
    z-index: 1;
}

.auth-panel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbfe 0%, #f2f7fb 100%);
    border: 1px solid #e0e9f1;
}

.auth-panel-logo-wrap {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d8e4ed;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.08);
}

.auth-panel-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-panel-brand-kicker {
    color: var(--auth-brand);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel-brand-title {
    margin-top: 4px;
    color: var(--auth-brand-deep);
    font-size: 1.2rem;
    line-height: 1.22;
    font-weight: 800;
}

.auth-panel-header {
    margin-bottom: 22px;
}

.auth-panel-badge {
    display: inline-flex;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--auth-brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel-header h2 {
    margin: 0;
    color: var(--auth-brand-deep);
    font-size: 1.82rem;
    line-height: 1.1;
    font-weight: 800;
}

.auth-panel-header p {
    margin: 14px 0 0;
    color: var(--auth-muted);
    font-size: 0.97rem;
    line-height: 1.68;
}

.auth-alert {
    margin-bottom: 16px;
    border-radius: 18px;
    border-width: 1px;
    box-shadow: 0 14px 30px rgba(15, 76, 129, 0.08);
}

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

.auth-label {
    margin-bottom: 8px;
    color: var(--auth-brand-deep);
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-input {
    min-height: 56px;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid #d7e3ec;
    background: #f8fbfd;
    color: var(--auth-brand-deep);
    box-shadow: inset 0 1px 2px rgba(15, 76, 129, 0.04);
}

.auth-input::placeholder {
    color: #8a9cab;
}

.auth-input:focus {
    border-color: rgba(15, 76, 129, 0.34);
    box-shadow: 0 0 0 0.25rem rgba(15, 76, 129, 0.12);
    background: #ffffff;
}

.auth-validation {
    display: block;
    margin-top: 8px;
}

.auth-submit {
    min-height: 56px;
    margin-top: 6px;
    border: none;
    border-radius: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #0f4c81 0%, #16658f 55%, #1f7b69 100%);
    box-shadow: 0 20px 30px rgba(15, 76, 129, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 24px 34px rgba(15, 76, 129, 0.24);
    filter: brightness(1.02);
}

.auth-panel-footer {
    margin-top: 18px;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .auth-stage {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .auth-shell {
        padding: 18px;
    }

    .auth-panel {
        padding: 26px;
        border-radius: 24px;
    }

    .auth-panel-brand {
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .auth-panel-logo-wrap {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .auth-panel-brand-title {
        font-size: 1.06rem;
    }

    .auth-panel-header h2 {
        font-size: 1.58rem;
    }
}
