:root {
    --auth-accent: #0f766e;
    --auth-accent-strong: #115e59;
    --auth-glow: rgba(15, 118, 110, 0.28);
    --auth-surface: rgba(8, 15, 28, 0.72);
    --auth-surface-border: rgba(255, 255, 255, 0.14);
    --auth-text: #f8fafc;
    --auth-muted: rgba(226, 232, 240, 0.8);
}
* { box-sizing: border-box; }
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--auth-text);
    background:
        linear-gradient(120deg, rgba(8, 15, 28, 0.75), rgba(15, 23, 42, 0.38)),
        var(--auth-background, linear-gradient(135deg, #0f172a, #1e293b));
    background-size: cover;
    background-position: center;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(360px, 540px);
}
.auth-panel {
    padding: 48px 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}
.auth-brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.auth-brand-mark img {
    max-width: 46px;
    max-height: 46px;
    display: block;
}
.auth-brand-copy strong {
    display: block;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}
.auth-brand-copy span {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    font-weight: 700;
}
.auth-copy {
    max-width: 600px;
    padding: 36px 0;
}
.auth-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.auth-copy p {
    margin: 0;
    max-width: 520px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--auth-muted);
}
.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.auth-feature {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.auth-feature strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
}
.auth-feature span {
    font-size: 14px;
    color: #fff;
}
.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}
.auth-card {
    width: 100%;
    background: var(--auth-surface);
    border: 1px solid var(--auth-surface-border);
    border-radius: 30px;
    padding: 34px 32px;
    backdrop-filter: blur(24px);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.35);
}
.auth-card h2 {
    margin: 0 0 8px;
    font-size: 30px;
}
.auth-card p {
    margin: 0 0 24px;
    color: var(--auth-muted);
    line-height: 1.6;
}
.auth-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}
.auth-alert.error {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fee2e2;
}
.auth-alert.success {
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #dcfce7;
}
.auth-form {
    display: grid;
    gap: 16px;
}
.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}
.auth-field input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
}
.auth-field input::placeholder { color: rgba(255,255,255,0.44); }
.auth-field input:focus {
    outline: none;
    border-color: rgba(110, 231, 219, 0.7);
    box-shadow: 0 0 0 4px var(--auth-glow);
}
.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--auth-accent), #14b8a6);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.28);
}
.auth-submit:hover { background: linear-gradient(135deg, var(--auth-accent-strong), #0f766e); }
.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 22px;
    justify-content: center;
}
.auth-links a {
    color: #d5fbf6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.auth-links a:hover { text-decoration: underline; }
.auth-footer {
    margin-top: 14px;
    text-align: center;
    color: rgba(226,232,240,0.72);
    font-size: 13px;
}
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel { padding-bottom: 18px; }
    .auth-copy { padding-bottom: 10px; }
    .auth-card-wrap { padding-top: 0; }
}
@media (max-width: 640px) {
    .auth-panel, .auth-card-wrap { padding: 24px; }
    .auth-card { padding: 26px 22px; border-radius: 24px; }
    .auth-brand-copy span { font-size: 24px; }
    .auth-copy h1 { font-size: 34px; }
}

.auth-brand-mark {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 16px 28px rgba(2, 6, 23, 0.22);
}

.auth-brand-mark img {
    max-width: 58px;
    max-height: 58px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
}

.auth-brand-copy strong {
    line-height: 1.35;
}








.auth-privacy-card {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    text-align: left;
}

.auth-privacy-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.84);
}

.auth-privacy-card p {
    margin: 0 0 10px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-privacy-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--auth-muted);
}

.auth-privacy-card li {
    margin: 0 0 8px;
    line-height: 1.6;
    font-size: 13px;
}

.auth-privacy-card li:last-child {
    margin-bottom: 0;
}
.auth-card-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(226,232,240,0.68);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: lowercase;
}