/* =========================================================
   ASSETPRO REGISTER PAGE
   ========================================================= */

:root {
    --bg: #050b16;
    --card: #0a1423;
    --input: #0d1929;

    --blue: #247cff;
    --blue-hover: #3b8cff;

    --white: #f5f8fc;
    --text: #d9e1ec;
    --muted: #7f8da1;

    --border: rgba(255, 255, 255, 0.09);
    --error: #ff6b6b;

    --radius: 12px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--white);

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}


/* =========================================================
   PAGE
   ========================================================= */

.register-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;

    padding: 55px 20px 40px;

    background:
        radial-gradient(
            circle at top center,
            rgba(36, 124, 255, 0.10),
            transparent 35%
        ),
        var(--bg);
}

.register-container {
    width: 100%;
    max-width: 500px;
}


/* =========================================================
   LOGO
   ========================================================= */

.auth-logo {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 auto 30px;

    color: var(--white);
    text-decoration: none;

    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-logo > span:last-child span {
    color: var(--blue);
}

.logo-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--blue);

    color: #fff;

    font-size: 18px;
    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(36, 124, 255, 0.25);
}


/* =========================================================
   CARD
   ========================================================= */

.register-card {
    width: 100%;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--card);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   HEADER
   ========================================================= */

.register-header {
    margin-bottom: 28px;

    text-align: center;
}

.register-header h1 {
    margin-bottom: 8px;

    color: var(--white);

    font-size: 26px;
    font-weight: 750;

    letter-spacing: -0.03em;
}

.register-header p {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.register-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 12px;
    font-weight: 650;
}

.form-group label span {
    margin-left: 5px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    outline: none;

    background: var(--input);

    color: var(--white);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #526278;
}

.form-group input:hover {
    background: #0f1c2d;
}

.form-group input:focus {
    border-color: var(--blue);

    background: #0d1929;

    box-shadow:
        0 0 0 3px rgba(36, 124, 255, 0.10);
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 65px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: 0;

    padding: 6px 8px;

    border-radius: 6px;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    font-size: 11px;
    font-weight: 650;
}

.password-toggle:hover {
    color: var(--white);

    background: rgba(255, 255, 255, 0.05);
}


/* =========================================================
   FIELD HINT / ERROR
   ========================================================= */

.field-hint,
.field-error {
    display: block;

    margin-top: 6px;

    font-size: 11px;
    line-height: 1.4;
}

.field-hint {
    color: #64748a;
}

.field-error {
    min-height: 0;

    color: var(--error);
}


/* =========================================================
   INVALID INPUT
   ========================================================= */

.form-group.invalid input {
    border-color: rgba(255, 107, 107, 0.65);
}

.form-group.invalid input:focus {
    box-shadow:
        0 0 0 3px rgba(255, 107, 107, 0.08);
}


/* =========================================================
   TERMS
   ========================================================= */

.terms {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;

    cursor: pointer;
}

.terms input {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    margin-top: 1px;

    accent-color: var(--blue);

    cursor: pointer;
}

.terms a {
    color: #55a3ff;

    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.register-button {
    position: relative;

    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 3px;

    border: 0;
    border-radius: var(--radius);

    background: var(--blue);

    color: #fff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 750;

    box-shadow:
        0 12px 28px rgba(36, 124, 255, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.register-button:hover:not(:disabled) {
    background: var(--blue-hover);

    transform: translateY(-1px);

    box-shadow:
        0 16px 32px rgba(36, 124, 255, 0.24);
}

.register-button:active:not(:disabled) {
    transform: translateY(0);
}

.register-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =========================================================
   LOADER
   ========================================================= */

.button-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;

    border-radius: 50%;

    animation:
        register-spin 0.7s linear infinite;
}

.register-button.loading .button-text {
    display: none;
}

.register-button.loading .button-loader {
    display: block;
}

@keyframes register-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   LOGIN LINK
   ========================================================= */

.login-link {
    margin-top: 23px;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}

.login-link a {
    margin-left: 4px;

    color: #55a3ff;

    font-weight: 650;

    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {
    margin-top: 24px;

    text-align: center;

    color: #46566c;

    font-size: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .register-page {
        padding:
            35px
            15px
            30px;
    }

    .auth-logo {
        margin-bottom: 24px;

        font-size: 21px;
    }

    .logo-mark {
        width: 35px;
        height: 35px;

        font-size: 16px;
    }

    .register-card {
        padding: 25px 18px;

        border-radius: 15px;
    }

    .register-header h1 {
        font-size: 23px;
    }

    .register-header p {
        font-size: 12px;
    }

    /*
       Keep 16px on mobile so iPhones do not
       zoom the page when an input receives focus.
    */
    .form-group input,
    .password-input input {
        height: 50px;

        font-size: 16px;
    }

    .register-button {
        height: 52px;

        font-size: 14px;
    }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 360px) {

    .register-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .register-card {
        padding: 22px 14px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .form-group input,
    .register-button,
    .password-toggle {
        transition: none;
    }

    .button-loader {
        animation: none;
    }
}