@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --finex-blue: #0869d8;
    --finex-blue-dark: #064da7;
    --finex-navy: #071b3a;
    --finex-gold: #e9ad32;
    --finex-light: #f5f8fc;
    --finex-border: #e2e8f0;
    --finex-text: #172033;
    --finex-muted: #758094;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--finex-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(8, 105, 216, .08), transparent 25%),
        radial-gradient(circle at 90% 85%, rgba(233, 173, 50, .08), transparent 24%),
        #f5f8fc;
}

a {
    text-decoration: none;
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 18px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(8, 105, 216, .07);
    border-radius: 50%;
    left: -260px;
    top: -180px;
}

.auth-page::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(233, 173, 50, .08);
    border-radius: 50%;
    right: -250px;
    bottom: -190px;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

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

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand a {
    display: inline-block;
}

.auth-brand img {
    width: 175px;
    height: 62px;
    object-fit: contain;
    object-position: center;
    transition: .2s ease;
}

.auth-brand img:hover {
    transform: translateY(-2px);
}

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

.auth-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(7, 27, 58, .08);
    border-radius: 24px;
    padding: 34px 36px 30px;
    box-shadow: 0 25px 70px rgba(16, 39, 72, .10);
    backdrop-filter: blur(12px);
}

.auth-header {
    text-align: center;
    margin-bottom: 27px;
}

.auth-label {
    display: inline-block;
    color: var(--finex-blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 9px;
}

.auth-header h1 {
    margin: 0;
    color: var(--finex-navy);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.8px;
    font-weight: 800;
}

.auth-header p {
    margin: 8px 0 0;
    color: var(--finex-muted);
    font-size: 12px;
    line-height: 1.6;
}

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

.auth-form {
    display: grid;
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: #303b4d;
    font-size: 11px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8290a4;
    font-size: 15px;
    z-index: 3;
    pointer-events: none;
}

.input-wrap .form-control {
    min-height: 48px;
    padding: 12px 14px 12px 41px;
    border: 1px solid var(--finex-border);
    border-radius: 12px;
    color: var(--finex-text);
    background: #fff;
    font-size: 12px;
    box-shadow: none;
    transition: .2s ease;
}

.input-wrap .form-control::placeholder {
    color: #a3acba;
}

.input-wrap .form-control:hover {
    border-color: #cbd5e1;
}

.input-wrap .form-control:focus {
    border-color: rgba(8, 105, 216, .65);
    box-shadow: 0 0 0 4px rgba(8, 105, 216, .08);
}

.input-wrap:focus-within > i {
    color: var(--finex-blue);
}

/* ================= SPONSOR NAME ================= */

.sponsor-name-wrap {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    margin-top: -7px;
    border-radius: 10px;
    color: #7a8698;
    background: #f5f8fc;
    border: 1px solid #e9eef5;
    font-size: 10px;
}

.sponsor-name-wrap > i {
    color: var(--finex-blue);
    font-size: 14px;
}

.sponsor-name-wrap strong {
    color: var(--finex-navy);
    font-size: 11px;
    font-weight: 700;
}

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

.password-wrap .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #7e8a9d;
    background: transparent;
    cursor: pointer;
    transition: .2s ease;
}

.password-toggle:hover {
    color: var(--finex-blue);
    background: #f0f6ff;
}

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

.btn-register {
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--finex-blue), var(--finex-blue-dark));
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 12px 25px rgba(8, 105, 216, .20);
    transition: .25s ease;
}

.btn-register i {
    margin-left: 7px;
    transition: .2s ease;
}

.btn-register:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(8, 105, 216, .27);
}

.btn-register:hover i {
    transform: translateX(3px);
}

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

.auth-switch {
    text-align: center;
    color: #7b8697;
    font-size: 11px;
    margin: 0;
}

.auth-switch a {
    color: var(--finex-blue);
    font-weight: 750;
}

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

/* ================= FOOTER ================= */

.auth-footer {
    margin: 17px 0 0;
    text-align: center;
    color: #929cac;
    font-size: 9px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 575.98px) {
    .auth-page {
        padding: 25px 13px;
        align-items: flex-start;
    }

    .auth-wrapper {
        margin-top: 10px;
    }

    .auth-brand {
        margin-bottom: 10px;
    }

    .auth-brand img {
        width: 155px;
        height: 55px;
    }

    .auth-card {
        padding: 27px 20px 24px;
        border-radius: 20px;
    }

    .auth-header {
        margin-bottom: 23px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-form {
        gap: 15px;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 24px 16px 22px;
    }

    .auth-header h1 {
        font-size: 22px;
    }
}
