:root {
    --skan-blue: #0f548c;
    --skan-blue-dark: #003d59;
    --skan-green: #006e64;
    --skan-text: #111827;
    --skan-muted: #5f6d82;
    --skan-border: rgba(15, 84, 140, .13);
}

.sk-auth-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 52px 18px;
    background:
        radial-gradient(circle at 12% 18%, rgba(15, 84, 140, .08), transparent 28%),
        radial-gradient(circle at 86% 84%, rgba(0, 110, 100, .08), transparent 28%),
        #f7fafc;
}

.sk-auth-card {
    width: min(760px, 100%);
    padding: 34px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--skan-border);
    box-shadow: 0 28px 90px rgba(15, 84, 140, .12);
}

.sk-auth-card-sm {
    width: min(480px, 100%);
}

.sk-auth-choice {
    width: min(760px, 100%);
}

.sk-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--skan-blue-dark);
    text-decoration: none;
    font-weight: 950;
    font-size: 1.15rem;
}

.sk-auth-brand span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--skan-blue), var(--skan-green));
}

.sk-auth-head {
    margin: 30px 0 24px;
}

.sk-auth-head span {
    color: var(--skan-green);
    font-size: .84rem;
    font-weight: 950;
}

.sk-auth-head h1 {
    margin: 8px 0 10px;
    color: var(--skan-text);
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 950;
}

.sk-auth-head p {
    margin: 0;
    color: var(--skan-muted);
    line-height: 1.65;
    font-size: .98rem;
}

.sk-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sk-form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
}

.sk-form-span {
    grid-column: 1 / -1;
}

.sk-form-field label {
    color: #263244;
    font-size: .84rem;
    font-weight: 900;
}

.sk-input {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(15, 84, 140, .12);
    background: #f8fafc;
    color: var(--skan-text);
    padding: 12px 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.sk-input:focus {
    border-color: var(--skan-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 84, 140, .10);
}

.sk-textarea {
    min-height: 104px;
    resize: vertical;
}

.sk-code-input {
    text-align: center;
    letter-spacing: .35em;
    font-size: 1.35rem;
    font-weight: 900;
}

.sk-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 18px;
}

.sk-form-row a,
.sk-auth-bottom a {
    color: var(--skan-blue);
    font-weight: 900;
    text-decoration: none;
}

.sk-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--skan-muted);
    font-size: .88rem;
    font-weight: 800;
}

.sk-auth-submit,
.sk-auth-secondary {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    font-weight: 950;
    cursor: pointer;
}

.sk-auth-submit {
    color: #fff;
    background: linear-gradient(135deg, var(--skan-blue), var(--skan-green));
    box-shadow: 0 18px 40px rgba(0, 61, 89, .18);
}

.sk-auth-submit:disabled,
.sk-auth-secondary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.sk-auth-secondary {
    margin-top: 14px;
    color: var(--skan-blue-dark);
    background: #edf6f9;
}

.sk-auth-alert,
.sk-auth-success {
    border-radius: 18px;
    padding: 12px 14px;
    font-size: .9rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.sk-auth-alert {
    background: #fff5f5;
    color: #b42318;
    border: 1px solid #fecaca;
}

.sk-auth-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sk-auth-bottom {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--skan-muted);
    margin-top: 20px;
    font-size: .92rem;
}

.sk-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sk-role-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--skan-border);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sk-role-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 110, 100, .32);
    box-shadow: 0 24px 70px rgba(15, 84, 140, .12);
}

.sk-role-card span {
    font-size: 2rem;
}

.sk-role-card strong,
.sk-role-card small {
    display: block;
}

.sk-role-card strong {
    margin-top: 18px;
    color: var(--skan-text);
    font-size: 1.1rem;
    font-weight: 950;
}

.sk-role-card small {
    margin-top: 10px;
    color: var(--skan-muted);
    line-height: 1.5;
}

.validation-message {
    color: #b42318;
    font-size: .78rem;
    font-weight: 800;
}

@media (max-width: 720px) {
    .sk-auth-card {
        padding: 24px;
        border-radius: 24px;
    }

    .sk-form-grid,
    .sk-role-grid {
        grid-template-columns: 1fr;
    }

    .sk-form-row,
    .sk-auth-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
