* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef3f9;
    color: #172033;
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, 44%) 1fr;
}

.auth-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: 45px 55px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.16),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0b4fa8,
            #113a73
        );
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, 0.05);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}

.auth-brand h1 {
    margin: 0;
    font-size: 29px;
}

.auth-brand p {
    margin: 5px 0 0;
    color: #d9e7fa;
    font-size: 14px;
}

.auth-introduction {
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin: auto 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    color: #eaf3ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.auth-introduction h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.13;
}

.auth-introduction p {
    max-width: 520px;
    margin: 24px 0 0;
    color: #d7e5f7;
    font-size: 17px;
    line-height: 1.75;
}

.auth-disclaimer {
    position: relative;
    z-index: 1;
    max-width: 500px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e7f0fc;
    font-size: 13px;
    line-height: 1.5;
}

.auth-form-panel {
    min-height: 100vh;
    padding: 40px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(18, 42, 74, 0.11);
}

.signup-card {
    max-width: 480px;
}

.auth-card-heading {
    margin-bottom: 28px;
}

.mobile-brand {
    display: none;
    margin-bottom: 10px;
    color: #0b4fa8;
    font-size: 14px;
    font-weight: 800;
}

.auth-card-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 29px;
}

.auth-card-heading p {
    margin: 8px 0 0;
    color: #6b7890;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #29374d;
    font-size: 14px;
    font-weight: 650;
}

.form-group input {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #cad5e3;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #176dce;
    box-shadow: 0 0 0 3px rgba(23, 109, 206, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 70px;
}

/* Hide Microsoft Edge's built-in password reveal icon */
.password-field input[type="password"]::-ms-reveal,
.password-field input[type="password"]::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: auto;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #176dce;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
}

.password-hint {
    display: block;
    margin-top: 7px;
    color: #7a8799;
    font-size: 12px;
    line-height: 1.4;
}

.form-message {
    display: none;
    margin: 4px 0 15px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.form-message.show {
    display: block;
}

.form-message.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

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

.auth-submit-button {
    width: 100%;
    height: 47px;
    border: none;
    border-radius: 9px;
    background: #176dce;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.auth-submit-button:hover {
    background: #0b56ad;
    transform: translateY(-1px);
}

.auth-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.auth-switch {
    margin: 24px 0 0;
    color: #6b7890;
    text-align: center;
    font-size: 14px;
}

.auth-switch a {
    color: #176dce;
    font-weight: 700;
    text-decoration: none;
}

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

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

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 25px 18px;
    }

    .mobile-brand {
        display: block;
    }
}

@media (max-width: 520px) {
    .auth-card {
        padding: 27px 21px;
        border-radius: 13px;
    }

    .auth-card-heading h2 {
        font-size: 25px;
    }
}
.registration-page {
    min-height: 100vh;
}

.registration-form-panel {
    align-items: flex-start;
    overflow-y: auto;
}

.registration-card {
    max-width: 760px;
    margin: 20px 0;
}

.registration-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3e9f1;
}

.registration-section:last-of-type {
    border-bottom: none;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h3 {
    margin: 0;
    color: #1c2c43;
    font-size: 17px;
}

.section-heading p {
    margin: 5px 0 0;
    color: #758197;
    font-size: 13px;
    line-height: 1.5;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group select {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #cad5e3;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    outline: none;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group select:focus {
    border-color: #176dce;
    box-shadow: 0 0 0 3px rgba(23, 109, 206, 0.12);
}

.field-hint {
    display: block;
    margin-top: 7px;
    color: #7a8799;
    font-size: 12px;
    line-height: 1.4;
}

.consent-section {
    padding: 18px;
    border: 1px solid #dce5f0;
    border-radius: 11px;
    background: #f8fafc;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    color: #435168;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
}

.checkbox-row input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #176dce;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .registration-form-panel {
        overflow: visible;
    }

    .registration-card {
        margin: 0;
    }
}

@media (max-width: 650px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .registration-card {
        padding: 25px 19px;
    }

    .registration-section {
        margin-bottom: 23px;
        padding-bottom: 20px;
    }
}

.username-suggestions {
    margin-top: 9px;
}

.username-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.username-suggestion {
    width: auto;
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    color: #176dce;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.username-suggestion:hover {
    border-color: #176dce;
    background: #eef6ff;
}

.username-available {
    color: #166534;
}

.username-unavailable {
    color: #991b1b;
}

.username-checking {
    color: #6b7890;
}
