.auth-page {
    padding: 56px 0 90px;
}

.auth-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.auth-side {
    background: linear-gradient(135deg, rgba(124, 121, 184, 0.12), rgba(124, 121, 184, 0.04));
    border: 1px solid rgba(124, 121, 184, 0.16);
    border-radius: 30px;
    padding: 38px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.auth-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.auth-side h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.auth-side p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.03rem;
    max-width: 560px;
}

.auth-side-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.auth-card {
    border-radius: 30px;
    overflow: hidden;
    min-height: 100%;
}

.auth-card .card-body {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.auth-card-header {
    margin-bottom: 24px;
    text-align: left;
}

.auth-card-header h2 {
    margin: 0 0 8px;
    font-size: 1.9rem;
}

.auth-card-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 18px;
    width: 100%;
}

.auth-field {
    display: grid;
    gap: 8px;
    width: 100%;
}

.auth-field label {
    font-weight: 700;
    color: var(--text);
    text-align: left;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfbfe 0%, #f6f8fd 100%);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    outline: none;
    appearance: none;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: rgba(124, 121, 184, 0.65);
    box-shadow: 0 0 0 4px rgba(124, 121, 184, 0.12);
    background: white;
}

.auth-help {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-help ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.auth-error {
    color: #b23a48;
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff2f3;
    border: 1px solid #f1c7cc;
    color: #a33746;
    font-weight: 600;
    line-height: 1.6;
}

.auth-submit {
    margin-top: 8px;
    min-height: 52px;
    font-size: 1rem;
    justify-self: start;
    padding-left: 22px;
    padding-right: 22px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.auth-footer a {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.auth-field select[multiple] {
    min-height: 180px;
    padding: 12px;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .auth-page {
        padding: 34px 0 70px;
    }

    .auth-container {
        width: min(1180px, calc(100% - 28px));
    }

    .auth-side,
    .auth-card .card-body {
        padding: 24px 20px;
    }

    .auth-side h1 {
        font-size: 2rem;
    }
}
.auth-helper-row {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 18px;
}

.auth-helper-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.18s ease;
}

.auth-helper-link:hover {
    color: var(--primary);
    text-decoration: underline;
}