.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(460px, 1.1fr);
    background: #f5f7fb;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 28px;
}

.auth-card {
    width: min(100%, 520px);
    padding: 38px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--color-text);
    text-decoration: none;
}

.auth-brand-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--color-primary);
    border-radius: 50%;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
}

.auth-brand-text strong {
    font-size: 17px;
}

.auth-brand-text span {
    color: var(--color-muted);
    font-size: 12px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 42px);
}

.auth-heading p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid #d7deeb;
    border-radius: 9px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group textarea {
    min-height: 100px;
    padding-top: 13px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(40, 87, 214, 0.12);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #d93025;
}

.form-error {
    min-height: 16px;
    color: #c62828;
    font-size: 12px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 7px 8px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    border: 0;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
}

.auth-options a,
.auth-footer a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-submit {
    min-height: 50px;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 800;
    background: var(--color-primary);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.auth-submit:hover {
    background: var(--color-primary-dark);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-message {
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 9px;
}

.form-message.error {
    color: #9d1c16;
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.form-message.success {
    color: #176b3a;
    background: #e9f8ef;
    border: 1px solid #bde7cc;
}

.form-message.info {
    color: #174ea6;
    background: #eaf1ff;
    border: 1px solid #c4d6ff;
}

.auth-footer {
    margin-top: 24px;
    color: var(--color-muted);
    text-align: center;
    font-size: 14px;
}

.auth-footer p {
    margin: 8px 0;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.18),
            transparent 30%
        ),
        linear-gradient(135deg, #102352, #2857d6);
}

.auth-visual::before,
.auth-visual::after {
    position: absolute;
    content: "";
    border-radius: 50%;
}

.auth-visual::before {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -140px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-visual::after {
    width: 280px;
    height: 280px;
    bottom: -130px;
    left: -100px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.auth-visual-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.84;
}

.auth-visual h2 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
}

.auth-visual p {
    margin: 0;
    font-size: 19px;
    line-height: 1.8;
    opacity: 0.88;
}

.auth-feature-list {
    display: grid;
    gap: 15px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-feature-icon {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.pending-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(
            circle at top right,
            rgba(40, 87, 214, 0.12),
            transparent 35%
        ),
        #f5f7fb;
}

.pending-card {
    width: min(100%, 650px);
    padding: 48px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.pending-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    color: var(--color-primary);
    font-size: 42px;
    background: #edf2ff;
    border-radius: 50%;
}

.pending-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 44px);
}

.pending-card > p {
    color: var(--color-muted);
    line-height: 1.8;
}

.pending-info {
    margin: 28px 0;
    padding: 20px;
    text-align: left;
    background: var(--color-soft);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.pending-info p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0;
}

.pending-info span {
    color: var(--color-muted);
}

.pending-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pending-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9px;
}

.pending-primary {
    color: #ffffff;
    background: var(--color-primary);
}

.pending-secondary {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

@media (max-width: 960px) {
    .auth-page {
        display: block;
    }

    .auth-panel {
        min-height: 100vh;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 620px) {
    .auth-panel {
        padding: 20px;
    }

    .auth-card,
    .pending-card {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .pending-info p {
        flex-direction: column;
        gap: 3px;
    }
}