:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #061321;
    color: #f5f8fb;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(31, 186, 168, 0.16), transparent 38%),
        radial-gradient(circle at 80% 85%, rgba(67, 157, 255, 0.14), transparent 34%),
        #061321;
}

.auth-card {
    width: min(100%, 440px);
    padding: 36px;
    border: 1px solid rgba(151, 190, 211, 0.2);
    border-radius: 22px;
    background: rgba(8, 28, 45, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.eyebrow {
    margin: 0 0 8px;
    color: #51ddc5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 2.8rem);
}

.intro {
    margin: 12px 0 28px;
    color: #b8c7d2;
    line-height: 1.55;
}

label {
    display: block;
    margin: 18px 0 7px;
    font-weight: 650;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #365166;
    border-radius: 10px;
    outline: none;
    background: #091c2d;
    color: #fff;
    font: inherit;
}

select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #365166;
    border-radius: 10px;
    outline: none;
    background: #091c2d;
    color: #fff;
    font: inherit;
}

input:focus {
    border-color: #51ddc5;
    box-shadow: 0 0 0 3px rgba(81, 221, 197, 0.16);
}

select:focus {
    border-color: #51ddc5;
    box-shadow: 0 0 0 3px rgba(81, 221, 197, 0.16);
}

button {
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #35cbb1, #3295e6);
    color: #03131e;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.08);
}

.button-link {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 11px;
    background: linear-gradient(135deg, #35cbb1, #3295e6);
    color: #03131e;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.button-link:hover {
    filter: brightness(1.08);
}

.button-link.secondary-link {
    border: 1px solid #365166;
    background: #102a3e;
    color: #eaf3f8;
}

.dashboard-section + .dashboard-section {
    margin-top: 28px;
}

.dashboard-section h2 {
    margin: 0 0 12px;
    color: #b8c7d2;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dashboard-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid #365166;
    border-radius: 10px;
    background: #091c2d;
    color: #eaf3f8;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-links a:hover,
.dashboard-links a:focus-visible {
    border-color: #51ddc5;
    background: #102a3e;
}

.back-to-live {
    display: block;
    margin-top: 24px;
    color: #51ddc5;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.back-to-live:hover,
.back-to-live:focus-visible {
    color: #8aefde;
    text-decoration: underline;
}

button.secondary {
    background: #16354b;
    color: #eaf3f8;
}

.message {
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.45;
}

.error {
    border: 1px solid rgba(255, 112, 112, 0.45);
    background: rgba(148, 36, 48, 0.24);
    color: #ffd5d8;
}

.success {
    border: 1px solid rgba(81, 221, 197, 0.45);
    background: rgba(31, 130, 112, 0.24);
    color: #c9fff5;
}

.user-management-card {
    width: min(100%, 620px);
}

.management-panel {
    padding-top: 8px;
}

.management-panel + .management-panel {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(151, 190, 211, 0.2);
}

.management-panel h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.management-panel > p {
    margin: 0 0 8px;
    color: #b8c7d2;
    line-height: 1.5;
}

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

    .dashboard-links {
        grid-template-columns: 1fr;
    }
}
