.auth-page {
max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 60px;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.auth-card h1 {
    margin: 0 0 10px;
}

.auth-intro {
    margin: 0 0 24px;
    color: #555;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input.has-error,
.form-field textarea.has-error {
    border-color: #c0392b;
}

.field-error {
    margin-top: 5px;
    color: #c0392b;
    font-size: .88rem;
}
.field-help {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #666;
}
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 18px;
}

.auth-submit-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.auth-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #9f2b1f;
}

.auth-switch {
    margin: 18px 0 0;
    text-align: center;
}
.register-success-page {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px 16px;
            background: #f5f7f6;
			flex: 1;
        }

        .register-success-card {
            width: 100%;
            max-width: 520px;
            background: #ffffff;
            border-radius: 22px;
            padding: 34px 28px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
            text-align: center;
        }

        .register-success-icon {
            width: 72px;
            height: 72px;
            margin: 0 auto 20px;
            border-radius: 50%;
            background: #18a558;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 42px;
            font-weight: 700;
            line-height: 1;
        }

        .register-success-card h1 {
            margin: 0 0 12px;
            font-size: 28px;
            color: #1f2933;
        }

        .register-success-card p {
            margin: 0 auto 14px;
            max-width: 430px;
            color: #52616b;
            font-size: 16px;
            line-height: 1.5;
        }

        .register-success-list {
            margin: 22px 0 26px;
            padding: 18px 20px;
            background: #f8faf9;
            border-radius: 16px;
            text-align: left;
        }

        .register-success-list div {
            margin: 8px 0;
            color: #334e68;
            font-size: 15px;
        }

        .register-success-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .register-success-btn {
            display: block;
            padding: 14px 18px;
            border-radius: 999px;
            text-decoration: none;
            font-weight: 700;
        }

        .register-success-btn.primary {
            background: #18a558;
            color: #ffffff;
        }

        .register-success-btn.secondary {
            background: #eef2f1;
            color: #334e68;
        }

/* Keep the registration form reachable on short/small screens. */
@media (max-height: 760px), (max-width: 700px) {
    .auth-page {
        align-items: flex-start;
    }
}

/* Registration modal: allow the form to remain fully reachable on short screens. */
.login-modal-overlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-modal {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-height: 760px), (max-width: 700px) {

    .login-modal-overlay {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .login-modal {
        margin: auto;
        max-height: none;
        overflow: visible;
    }

}