﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --nx-purple: #6635d8;
    --nx-purple-dark: #5227bc;
    --nx-ink: #17204b;
    --nx-muted: #68718f;
    --nx-line: #e2e4ef;
}

.nx-glass-page, .nx-glass-page * {
    box-sizing: border-box;
}

.nx-glass-page {
    position: relative;
    display: grid;
    min-height: 720px;
    padding: 38px 20px;
    overflow: hidden;
    place-items: center;
    isolation: isolate;
    background: #fbfaff;
    color: var(--nx-ink);
    font-family: Inter, Arial, sans-serif;
}

.nx-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .45;
    background-image: linear-gradient(rgba(110,72,211,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(110,72,211,.045) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 45%, black, transparent 70%);
}

.nx-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(44px);
}

.nx-glow-purple {
    width: 330px;
    height: 330px;
    top: -120px;
    left: 10%;
    background: rgba(192,174,255,.55);
}

.nx-glow-violet {
    width: 330px;
    height: 270px;
    right: 8%;
    bottom: -130px;
    background: rgba(220,210,255,.7);
}

.nx-glass-card {
    width: min(100%, 402px);
    padding: 28px 31px 25px;
    border: 1px solid #ebe9f3;
    border-radius: 21px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 55px rgba(50,42,95,.12);
}

.nx-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #1a2251;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.8px;
}

    .nx-logo img {
        width: 31px;
        height: 31px;
        border-radius: 8px;
        object-fit: cover;
    }

    .nx-logo > span > span {
        color: var(--nx-purple);
    }

.nx-login-heading {
    margin-bottom: 24px;
    text-align: center;
}

    .nx-login-heading h1 {
        margin: 0 0 5px;
        color: var(--nx-ink) !important;
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -1.1px;
    }

    .nx-login-heading p {
        margin: 0;
        color: var(--nx-muted) !important;
        font-size: 12px;
    }

.nx-field {
    margin-top: 16px;
}

    .nx-field > label, .nx-field-label label {
        color: #343b61 !important;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .025em;
        text-transform: uppercase;
    }

.nx-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

    .nx-field-label a {
        color: var(--nx-purple);
        font-size: 10px;
        font-weight: 700;
        text-decoration: none;
    }

        .nx-field-label a:hover {
            color: var(--nx-purple-dark);
            text-decoration: underline;
        }

.nx-field > label {
    display: block;
    margin-bottom: 7px;
}

.nx-control {
    position: relative;
}

    .nx-control > i {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 13px;
        transform: translateY(-50%);
        color: #8790ad;
        font-size: 14px;
        pointer-events: none;
    }

    .nx-control input {
        width: 100%;
        height: 45px;
        padding: 0 42px;
        border: 1px solid var(--nx-line);
        border-radius: 10px;
        outline: none;
        color: var(--nx-ink);
        background: #fff;
        font: 13px Inter, sans-serif;
        transition: .2s ease;
    }

        .nx-control input::placeholder {
            color: #a2a9bd;
        }

        .nx-control input:focus {
            border-color: #8a61eb;
            box-shadow: 0 0 0 3px rgba(102,53,216,.11);
        }

.nx-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 31px;
    height: 31px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    color: #7e87a5;
    background: transparent;
    cursor: pointer;
}

    .nx-password-toggle:hover {
        color: var(--nx-purple);
        background: #f1edff;
    }

.nx-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 18px;
    color: var(--nx-muted);
    font-size: 11px;
    cursor: pointer;
}

    .nx-remember input {
        width: 14px;
        height: 14px;
        margin: 0;
        accent-color: var(--nx-purple);
        cursor: pointer;
    }

.nx-signin {
    width: 100%;
    height: 45px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(100deg, var(--nx-purple-dark), #7a4be8);
    box-shadow: 0 8px 18px rgba(82,39,188,.22);
    cursor: pointer;
    font: 700 13px Inter, sans-serif;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

    .nx-signin:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 12px 24px rgba(82,39,188,.3);
    }

    .nx-signin:active {
        transform: translateY(0);
    }

.nx-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 13px;
    color: #959bb0;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .05em;
}

    .nx-divider::before, .nx-divider::after {
        height: 1px;
        flex: 1;
        background: var(--nx-line);
        content: '';
    }

.nx-social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

    .nx-social-buttons button {
        height: 36px;
        border: 1px solid var(--nx-line);
        border-radius: 9px;
        color: #26315d;
        background: #fff;
        cursor: pointer;
        font-size: 15px;
        transition: .2s ease;
    }

        .nx-social-buttons button:hover {
            transform: translateY(-2px);
            border-color: #a88bf0;
            background: #faf8ff;
            box-shadow: 0 5px 12px rgba(58,43,112,.10);
        }

    .nx-social-buttons .fa-google {
        color: #4285f4;
    }

    .nx-social-buttons .fa-microsoft {
        color: #f25022;
    }

.nx-register {
    margin: 18px 0 0;
    color: var(--nx-muted) !important;
    text-align: center;
    font-size: 11px;
}

    .nx-register a {
        color: var(--nx-purple);
        font-weight: 700;
        text-decoration: none;
    }

        .nx-register a:hover {
            color: var(--nx-purple-dark);
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .nx-glass-page {
        min-height: 650px;
        padding: 24px 14px;
    }

    .nx-glass-card {
        padding: 25px 21px 22px;
        border-radius: 19px;
    }
}
