:root {
    --navy-900: #0b1f4b;
    --navy-800: #102d72;
    --blue-600: #2563eb;
    --blue-500: #3478f6;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #dbe3ef;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;

    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Inter", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.28),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            var(--navy-900) 0%,
            var(--navy-800) 52%,
            var(--blue-600) 100%
        );
}

.login-wrapper {
    width: 100%;
    max-width: 385px;
}

.brand-section {
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.12);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.brand-section h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-section p {
    margin: 7px 0 0;
    color: #dbeafe;
    font-size: 14px;
}

.login-card {
    padding: 30px 28px 28px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(4, 18, 55, 0.22);
}

.login-card-header {
    margin-bottom: 25px;
}

.login-card-header h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 20px;
    font-weight: 750;
}

.login-card-header p {
    margin: 7px 0 0;
    color: var(--slate-500);
    font-size: 14px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.login-alert i {
    margin-top: 2px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    color: var(--slate-900);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
    outline: none;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--blue-600);
    background: var(--slate-100);
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.2);
}

.login-button {
    width: 100%;
    height: 42px;
    margin-top: 1px;
    color: #ffffff;
    background: var(--blue-600);
    border: none;
    border-radius: 10px;
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.28);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.demo-box {
    margin-top: 19px;
    padding: 10px 12px;
    color: #7890b3;
    background: var(--slate-50);
    border-radius: 9px;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-page {
        padding: 28px 16px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .brand-section {
        margin-bottom: 24px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .brand-section h1 {
        font-size: 24px;
    }

    .login-card {
        padding: 26px 20px 22px;
        border-radius: 16px;
    }
}