
/* =====================================
   EARNOVA REGISTRATION PAGE
   Navy, Blue & Champagne Gold Theme
===================================== */

:root {
    --black: #192D59;
    --black-soft: #243B6B;
    --gold: #3467B2;
    --gold-light: #80B5E8;
    --gold-dark: #254F91;
    --white: #FFFFFF;
    --text: #192D59;
    --muted: #718099;
    --border: #E6E6E2;
    --cream: #FBF8EF;
    --soft-gold: #F3E9CF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
}

/* PAGE BACKGROUND */

.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #FFFDF8 30%,
        #FBF8EF 70%,
        #F3E9CF 100%
    );
}

.register-page::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    top: -220px;
    right: -180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(128, 181, 232, 0.16),
        transparent 70%
    );
    pointer-events: none;
}

.register-page::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    bottom: -230px;
    left: -180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 103, 178, 0.10),
        transparent 70%
    );
    pointer-events: none;
}

/* REGISTRATION CARD */

.register-card {
    width: 100%;
    max-width: 570px;
    padding: 42px 44px;
    background: var(--white);
    border: 1px solid rgba(25, 45, 89, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(25, 45, 89, 0.09);
    position: relative;
    z-index: 1;
}

/* BRAND */

.register-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 26px;
    color: var(--black);
}

.brand-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    background: #F3F7FD;
    font-size: 39px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.5;
}

.brand-text strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-text strong span {
    color: var(--gold);
}

.brand-text small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1px;
}

/* HEADING */

.register-heading {
    text-align: center;
    margin-bottom: 30px;
}

.register-heading h1 {
    font-size: clamp(25px, 5vw, 32px);
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: var(--black);
}

.register-heading p {
    color: var(--muted);
    font-size: 14px;
}

/* ACCOUNT TYPE */

.account-type {
    border: 0;
    min-width: 0;
    margin-bottom: 25px;
}

.account-type legend {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.account-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--white);
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.account-option:hover {
    border-color: var(--gold);
}

.account-option.selected,
.account-option:has(input:checked) {
    border: 1.5px solid var(--gold);
    background: #F3F7FD;
    box-shadow: 0 0 0 2px rgba(52, 103, 178, 0.06);
}

.account-option input {
    position: absolute;
    top: 12px;
    right: 12px;
    accent-color: var(--gold);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.option-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid #C8DCF3;
    border-radius: 50%;
    background: #F3F7FD;
    color: var(--gold);
    font-size: 24px;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-content strong {
    font-size: 15px;
    color: var(--text);
}

.option-content small {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
}

/* FORM FIELDS */

.form-group {
    margin-bottom: 19px;
}

.form-group > label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    color: var(--text);
    background: #FFFDF9;
    font-size: 13px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #9AA5B5;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(52, 103, 178, 0.12);
    background: var(--white);
}

/* PASSWORD */

.password-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FFFDF9;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.password-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(52, 103, 178, 0.12);
}

.password-wrapper input {
    border: 0;
    box-shadow: none;
    min-width: 0;
    background: transparent;
}

.password-wrapper input:focus {
    box-shadow: none;
    background: transparent;
}

.password-toggle {
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--gold);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -3px;
    border-radius: 5px;
}

.field-hint {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

/* FORM FEEDBACK */

.form-message {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 12px;
}

.form-message[hidden] {
    display: none;
}

.form-message.error {
    color: #9C2525;
    background: #FFF0F0;
    border: 1px solid #F0CACA;
}

.form-message.success {
    color: #176B3A;
    background: #EEFAF2;
    border: 1px solid #C6E9D2;
}

/* CREATE ACCOUNT BUTTON */

.create-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: 30px;
    background: var(--gold);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.create-account-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(52, 103, 178, 0.18);
}

.create-account-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.create-account-btn:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
}

/* LOGIN LINK */

.login-prompt {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.login-prompt a {
    margin-left: 5px;
    color: var(--gold-dark);
    font-weight: 700;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* BOTTOM TRUST TEXT */

.register-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 27px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 520px) {
    .register-page {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .register-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .register-heading {
        margin-bottom: 24px;
    }

    .account-options {
        gap: 9px;
    }

    .account-option {
        padding: 12px;
    }

    .option-content small {
        font-size: 10px;
    }

    .brand-text strong {
        font-size: 25px;
    }

    .register-footer {
        gap: 12px;
    }
}

@media (max-width: 350px) {
    .account-options {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
