:root {
    --bg: #050810;
    --surface: #0D1424;
    --surface-light: #111827;

    --cyan: #00F0FF;
    --blue: #2563EB;
    --purple: #8B5CF6;

    --text: #E6F1FF;
    --text-muted: #8290A5;

    --border: rgba(230, 241, 255, 0.10);
    --border-focus: rgba(0, 240, 255, 0.45);

    --gradient: linear-gradient(
        135deg,
        #00F0FF 0%,
        #2563EB 50%,
        #8B5CF6 100%
    );
}

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

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

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

    background: var(--bg);
    color: var(--text);
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;

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

    padding: 32px 20px;

    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -180px;

    background: rgba(0, 240, 255, 0.07);

    filter: blur(100px);

    pointer-events: none;
}

.login-page::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    bottom: -250px;
    left: -180px;

    background: rgba(139, 92, 246, 0.07);

    filter: blur(100px);

    pointer-events: none;
}

.login-card {
    width: min(100%, 440px);

    padding: 44px;

    background:
        linear-gradient(
            180deg,
            rgba(17, 24, 39, 0.96),
            rgba(13, 20, 36, 0.96)
        );

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

    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);

    position: relative;
    z-index: 1;
}

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

.brand-symbol {
    width: 58px;
    height: 58px;

    object-fit: contain;

    margin-bottom: 14px;
}

.brand-name {
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.22em;

    color: var(--text);
}

.portal-name {
    margin-top: 7px;

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.25em;

    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.login-header {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(--cyan);
}

.login-header h1 {
    font-size: 1.8rem;
    line-height: 1.2;

    margin-bottom: 10px;
}

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

    font-size: 0.9rem;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;

    color: var(--text);
}

.form-group input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    color: var(--text);

    background: rgba(5, 8, 16, 0.65);

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

    border-radius: 9px;

    outline: none;

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

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

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

    background: rgba(5, 8, 16, 0.9);

    box-shadow:
        0 0 0 3px rgba(0, 240, 255, 0.06);
}

.login-button {
    width: 100%;

    height: 50px;

    margin-top: 4px;

    border: none;
    border-radius: 9px;

    background: var(--gradient);

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    cursor: pointer;

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

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

    box-shadow:
        0 10px 30px rgba(37, 99, 235, 0.25);
}

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

.login-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.login-error {
    display: none;

    padding: 11px 13px;

    background: rgba(220, 38, 38, 0.08);

    border: 1px solid rgba(220, 38, 38, 0.2);

    border-radius: 8px;

    color: #FF8A8A;

    font-size: 0.78rem;
    line-height: 1.5;
}

.login-error.visible {
    display: block;
}

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin-top: 32px;

    color: #56657A;

    font-size: 0.65rem;

    letter-spacing: 0.04em;
}

.separator {
    color: #293548;
}

@media (max-width: 520px) {

    .login-page {
        padding: 20px 16px;
    }

    .login-card {
        padding: 34px 24px;
        border-radius: 14px;
    }

    .brand {
        margin-bottom: 34px;
    }

    .login-header h1 {
        font-size: 1.55rem;
    }

    .login-footer {
        flex-direction: column;
        gap: 4px;
    }

    .separator {
        display: none;
    }
}