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

:root {
    --background: #08051a;
    --card: rgba(13, 9, 35, 0.94);

    --border: rgba(151, 83, 255, 0.28);

    --text: #ffffff;
    --muted: #85819a;

    --purple: #9b4dff;
    --purple-bright: #b86cff;

    --danger: #ff5c7a;
    --success: #6dffb1;
}

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

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(100, 38, 190, 0.16),
            transparent 42%
        ),
        #08051a;

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

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

    overflow-x: hidden;
}


/* ========================================
   BACKGROUND GRID
======================================== */

.background-grid {
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(130, 75, 255, 0.075) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(130, 75, 255, 0.075) 1px,
            transparent 1px
        );

    background-size: 28px 28px;

    pointer-events: none;
}


/* ========================================
   BACKGROUND GLOW
======================================== */

.background-glow {
    position: fixed;

    width: 650px;
    height: 650px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(122, 47, 255, 0.12),
            transparent 68%
        );

    filter: blur(20px);

    pointer-events: none;
}


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

.page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    padding: 30px 20px;
}


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

.auth-card {
    position: relative;

    width: 430px;
    max-width: 100%;

    padding: 25px 26px 24px;

    background:
        linear-gradient(
            145deg,
            rgba(23, 14, 52, 0.97),
            rgba(10, 6, 26, 0.97)
        );

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

    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(119, 53, 255, 0.08);

    backdrop-filter: blur(18px);
}


/* ========================================
   BRAND
======================================== */

.brand {
    text-align: center;

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

    letter-spacing: 4px;

    color: #b987ff;

    margin-bottom: 16px;
}


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

.account-logo {
    width: 82px;
    height: 82px;

    margin: 0 auto 17px;

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

    border-radius: 15px;
    overflow: hidden;
}

.account-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    border-radius: 20px;

    /* Makes the black background blend away */
    mix-blend-mode: screen;

    filter:
        drop-shadow(
            0 0 12px rgba(255, 174, 45, 0.28)
        )
        drop-shadow(
            0 0 25px rgba(255, 145, 20, 0.12)
        );
}


/* ========================================
   TITLE
======================================== */

h1 {
    text-align: center;

    font-size: 21px;
    font-weight: 700;

    margin-bottom: 7px;
}

.subtitle {
    text-align: center;

    color: var(--muted);

    font-size: 10px;

    margin-bottom: 25px;
}


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

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;

    font-size: 9px;
    font-weight: 600;

    color: #aaa5bc;

    margin-bottom: 7px;
}


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

.field input {
    width: 100%;

    height: 42px;

    padding: 0 13px;

    border-radius: 7px;

    border: 1px solid rgba(145, 95, 255, 0.19);

    background: rgba(4, 2, 15, 0.7);

    color: #ffffff;

    outline: none;

    font-size: 11px;

    transition: 0.2s ease;
}

.field input::placeholder {
    color: #555064;
}

.field input:focus {
    border-color: rgba(170, 93, 255, 0.7);

    box-shadow:
        0 0 0 2px rgba(151, 73, 255, 0.08);
}


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

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 55px;
}

.show-password {
    position: absolute;

    right: 11px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #b783ff;

    font-size: 9px;

    cursor: pointer;

    padding: 4px;
}

.show-password:hover {
    color: #d0a8ff;
}


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

.primary-button {
    width: 100%;

    height: 42px;

    margin-top: 4px;

    border: none;
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            #9143e9,
            #b15dff
        );

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(137, 55, 230, 0.22);

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

.primary-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 28px rgba(137, 55, 230, 0.32);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* ========================================
   MESSAGE
======================================== */

.message {
    min-height: 18px;

    margin-top: 13px;

    text-align: center;

    font-size: 10px;
}

.message.error {
    color: var(--danger);
}

.message.success {
    color: var(--success);
}


/* ========================================
   CREATE ACCOUNT
======================================== */

.switch-text {
    margin-top: 18px;

    text-align: center;

    color: #69647c;

    font-size: 9px;
}

.create-account-link {
    border: none;

    background: transparent;

    color: var(--purple-bright);

    font-family: inherit;

    font-size: 9px;

    cursor: pointer;

    margin-left: 3px;

    padding: 0;
}

.create-account-link:hover {
    text-decoration: underline;
}


/* ========================================
   SECURITY
======================================== */

.secure-text {
    margin-top: 18px;

    text-align: center;

    color: #514d62;

    font-size: 8px;
}


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

footer {
    margin-top: 18px;

    color: #302b40;

    font-size: 8px;

    letter-spacing: 2px;
}


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

@media (max-width: 520px) {

    .page {
        padding: 20px 14px;
    }

    .auth-card {
        width: 100%;

        padding:
            24px
            20px
            22px;
    }

    .account-logo {
        width: 76px;
        height: 76px;
    }

    h1 {
        font-size: 20px;
    }
}