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

:root {
    --bg: #060b16;
    --bg-secondary: #0c1222;

    --primary: #033aa1;
    --primary-dark: #0a348d;
    --accent: #cc0000;

    --text: #ffffff;
    --muted: #9ea9bb;

    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    min-height: 100vh;

    background: radial-gradient(
            circle at 15% 20%,
            rgba(3, 58, 161, 0.18),
            transparent 28%
    ),
    radial-gradient(
            circle at 85% 80%,
            rgba(221, 8, 31, 0.12),
            transparent 25%
    ),
    radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.02),
            transparent 60%
    ),
    linear-gradient(135deg, #060b16 0%, #0c1222 50%, #070d18 100%);

    color: var(--text);
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-x: hidden;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0;

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

    background-size: 50px 50px;

    mask-image: linear-gradient(to bottom, black, transparent 90%);

    pointer-events: none;
}

.glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
}

.glow.one {
    width: 500px;
    height: 500px;

    top: -250px;
    left: -180px;

    background: rgba(3, 58, 161, 0.18);
}

.glow.two {
    width: 450px;
    height: 450px;

    bottom: -220px;
    right: -150px;

    background: rgba(221, 8, 31, 0.1);
}

.glow.one {
    top: -150px;
    left: -120px;
}

.glow.two {
    bottom: -160px;
    right: -100px;
    background: rgba(10, 52, 141, 0.18);
}

/* ================================
     MAIN
  ================================= */

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

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

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

.logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;

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

    border-radius: 21px;

    background: linear-gradient(
            145deg,
            rgba(3, 58, 161, 0.35),
            rgba(10, 52, 141, 0.12)
    );

    border: 1px solid rgba(3, 58, 161, 0.5);

    box-shadow: 0 0 0 7px rgba(0, 229, 255, 0.025),
    0 0 45px rgba(0, 229, 255, 0.13),
    inset 0 0 25px rgba(0, 229, 255, 0.04);
}

.logo-text {
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -2px;
    color: #cc0000;
}

.brand h1 {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.brand h1 span {
    color: #cc0000;
}

.brand p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

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

.card {
    position: relative;
    padding: 36px;
    border-radius: 28px;

    background: rgba(15, 23, 42, 0.55);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;

    background: linear-gradient(
            90deg,
            transparent,
            rgba(221, 8, 31, 0.75),
            transparent
    );

    box-shadow: 0 0 15px rgba(221, 8, 31, 0.45);
}

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

input.input-error {
    border-color: rgba(255, 82, 107, 0.65);

    box-shadow: 0 0 0 3px rgba(255, 82, 107, 0.07);
}

.field-error {
    display: none;
    margin-top: 7px;
    padding-left: 2px;

    color: #ff7183;

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

.field-error.show {
    display: block;
}

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

.card-header {
    margin-bottom: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 11px;
    margin-bottom: 16px;

    border-radius: 100px;
    background: rgba(3, 58, 161, 0.18);
    border: 1px solid rgba(3, 58, 161, 0.35);
    color: #ffffff;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #35e59b;

    box-shadow: 0 0 10px rgba(53, 229, 155, 0.8);

    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.card-header h2 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.7px;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
    max-width: 330px;
}

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

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 9px;

    color: #b8c2d4;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.15px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8b9bb5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrapper:focus-within .input-icon {
    color: var(--cyan);
}

input {
    width: 100%;
    height: 54px;

    padding: 0 48px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #ffffff;

    outline: none;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;

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

input::placeholder {
    color: #566277;
}

input:hover {
    border-color: rgba(255, 255, 255, 0.13);
}

input:focus {
    border-color: rgba(3, 58, 161, 0.8);

    background: rgba(3, 58, 161, 0.08);

    box-shadow: 0 0 0 4px rgba(3, 58, 161, 0.12),
    0 10px 30px rgba(3, 58, 161, 0.18);
}

.input-wrapper:focus-within .input-icon {
    color: #033aa1;
}

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

.password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

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

    border: none;
    border-radius: 9px;

    background: transparent;

    color: #68758b;

    cursor: pointer;

    transition: color 0.2s ease,
    background 0.2s ease;
}

.password-toggle:hover {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.07);
}

.password-toggle svg {
    width: 18px;
    height: 18px;

    stroke: currentColor;
    fill: none;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ================================
     SERVER ERROR
  ================================= */

.error {
    display: none;

    margin-top: -5px;
    margin-bottom: 15px;

    padding: 12px 14px;

    border-radius: 12px;

    background: rgba(221, 8, 31, 0.08);
    border: 1px solid rgba(221, 8, 31, 0.35);

    color: #ff8997;

    font-size: 11.5px;
    line-height: 1.5;
}

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

.login-btn {
    width: 100%;
    height: 55px;

    margin-top: 7px;

    border: none;
    border-radius: 14px;

    cursor: pointer;

    background: linear-gradient(135deg, #033aa1, #0a348d);

    color: white;

    font-family: inherit;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;

    box-shadow: 0 12px 30px rgba(3, 58, 161, 0.35);

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

.login-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.04);

    box-shadow: 0 18px 40px rgba(3, 58, 161, 0.45);
}

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

.login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

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

.security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    color: #8b9bb5;
    font-size: 10px;
    font-weight: 500;
}

.security svg {
    width: 14px;
    height: 14px;
    color: #cc0000;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.footer {
    text-align: center;

    margin-top: 22px;

    color: #3f4a5e;

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ================================
     LOADING
  ================================= */

.spinner {
    width: 18px;
    height: 18px;

    border: 2px solid rgba(0, 0, 0, 0.18);

    border-top-color: #021016;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;

    margin: auto;
}

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

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

@media (max-width: 500px) {
    body {
        padding: 18px;
    }

    .wrapper {
        max-width: 420px;
    }

    .card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .brand h1 {
        font-size: 27px;
    }

    .logo {
        width: 64px;
        height: 64px;
    }
}

.footer-quickened_link {
    text-decoration: none;
    color: #3f4a5e;
}

.footer-quickened_link:hover {
    text-decoration: none;
    color: #9aa7c5
}