:root {
    --login-primary: #2563eb;
    --login-secondary: #4f46e5;
    --login-dark: #0f172a;
    --login-muted: #64748b;
    --login-border: #dbe3ef;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f8fafc;
    color: var(--login-dark);
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 1.1fr) minmax(460px, 0.9fr);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 64px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(96, 165, 250, 0.35),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(99, 102, 241, 0.35),
            transparent 35%
        ),
        linear-gradient(
            140deg,
            #081426,
            #102750 55%,
            #1d4ed8
        );
    color: #ffffff;
}

.login-brand-panel::before,
.login-brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.login-brand-panel::before {
    width: 520px;
    height: 520px;
    right: -220px;
    top: -190px;
}

.login-brand-panel::after {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -190px;
}

.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-logo,
.login-mobile-logo {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        #60a5fa,
        #4f46e5
    );
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.login-eyebrow {
    display: block;
    margin-top: 38px;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand-content h1 {
    max-width: 650px;
    margin: 18px 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
}

.login-brand-content > p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.75;
}

.login-features {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}

.login-features div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.login-features i {
    color: #60a5fa;
}

.login-brand-footer {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #f8fafc;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.login-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.login-form-eyebrow {
    color: var(--login-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 10px 0 8px;
    font-family: "Poppins", sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
}

.login-subtitle {
    margin-bottom: 34px;
    color: var(--login-muted);
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.88rem;
    font-weight: 700;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #94a3b8;
    transform: translateY(-50%);
}

.login-input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 10px 48px;
    border: 1px solid var(--login-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--login-dark);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-wrapper input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    transform: translateY(-50%);
}

.login-password-toggle:hover {
    background: #f1f5f9;
}

.login-submit {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--login-primary),
        var(--login-secondary)
    );
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 25px rgba(37, 99, 235, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.login-security i {
    color: #22c55e;
}

.alert {
    margin-bottom: 24px;
    border: 0;
    border-radius: 12px;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 30px 22px;
    }

    .login-mobile-logo {
        display: grid;
    }
}