.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--amcob-gradient);
    font-family: var(--amcob-font-body);
}

.auth-page__shell {
    width: 100%;
    max-width: 440px;
}

.auth-page__shell--wide {
    max-width: 520px;
}

.auth-card {
    background: var(--amcob-white);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 41, 66, 0.22);
    padding: 2rem 2rem 1.75rem;
    width: 100%;
}

.auth-card__logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-card__portal {
    display: inline-block;
    margin: 0 auto 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #eff6ff;
    color: var(--amcob-primary);
}

.auth-card__portal-wrap {
    text-align: center;
}

.auth-card__portal--admin {
    background: #fef3c7;
    color: #92400e;
}

.auth-card__portal--company {
    background: #ede9fe;
    color: #5b21b6;
}

.auth-card__portal--user {
    background: #dbeafe;
    color: #1e40af;
}

.auth-card__title {
    margin: 0 0 0.35rem;
    text-align: center;
    font-family: var(--amcob-font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--amcob-gray-900);
    line-height: 1.25;
}

.auth-card__subtitle {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--amcob-gray-500);
    line-height: 1.45;
}

.auth-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.auth-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

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

.auth-form-group {
    margin-bottom: 1.1rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--amcob-gray-700);
}

.auth-form-group input,
.auth-form-group select,
.auth-form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--amcob-gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--amcob-gray-900);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form-group input:focus,
.auth-form-group select:focus,
.auth-form-group textarea:focus {
    outline: none;
    border-color: var(--amcob-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.auth-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #dc2626;
}

.auth-btn {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--amcob-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.28);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-section-title {
    margin: 1.35rem 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #dbeafe;
    font-family: var(--amcob-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--amcob-primary);
}

.auth-section-title:first-of-type {
    margin-top: 0.25rem;
}

.auth-invitation {
    background: #eff6ff;
    border-left: 4px solid var(--amcob-primary);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--amcob-gray-700);
    line-height: 1.45;
}

.auth-invitation strong {
    color: var(--amcob-primary);
}

.auth-footer {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--amcob-gray-200);
    text-align: center;
    font-size: 0.86rem;
    color: var(--amcob-gray-500);
    line-height: 1.55;
}

.auth-footer a {
    color: var(--amcob-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.5rem;
}

.auth-footer__sep {
    color: #cbd5e1;
    user-select: none;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem 1.35rem;
    }

    .auth-card__title {
        font-size: 1.35rem;
    }
}
