* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #f4f6fa;
    --surface: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;

    --primary: #6366f1;
    --primary-hover: #4f46e5;

    --sidebar: #111827;

    --radius: 18px;

    --shadow:
        0 20px 50px
        rgba(15, 23, 42, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns: minmax(380px, 0.9fr) minmax(500px, 1.1fr);
}

/* =========================
   LEFT
========================= */

.login-brand {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100vh;

    padding: 50px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #111827 0%,
            #172033 55%,
            #312e81 100%
        );

    color: #ffffff;
}

.login-brand::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    top: -160px;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, 0.22);
}

.login-brand::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    left: -150px;
    bottom: -130px;

    border-radius: 50%;

    background:
        rgba(139, 92, 246, 0.14);
}

.login-logo,
.login-brand-content,
.login-brand-footer {
    position: relative;

    z-index: 1;
}

.login-logo {
    display: flex;
    align-items: center;

    gap: 13px;
}

.login-logo-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #6366f1;

    font-size: 19px;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
}

.login-logo-text strong {
    font-size: 16px;
}

.login-logo-text span {
    margin-top: 2px;

    color: #94a3b8;

    font-size: 12px;
}

.login-brand-content {
    max-width: 500px;
}

.login-brand-content span {
    display: inline-block;

    margin-bottom: 14px;

    color: #a5b4fc;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-brand-content h1 {
    max-width: 470px;

    margin-bottom: 18px;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;

    letter-spacing: -0.045em;
}

.login-brand-content p {
    max-width: 440px;

    color: #cbd5e1;

    font-size: 15px;
    line-height: 1.7;
}

.login-brand-footer {
    color: #64748b;

    font-size: 11px;
}

/* =========================
   FORM SIDE
========================= */

.login-content {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 50px 30px;

    background: #f8fafc;
}

.login-box {
    width: 100%;
    max-width: 440px;
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading span {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-heading h2 {
    margin-bottom: 9px;

    font-size: 30px;

    letter-spacing: -0.035em;
}

.login-heading p {
    color: var(--text-light);

    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   FORM
========================= */

.login-form {
    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 12px;
    font-weight: 650;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 13px;

    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 48px;

    padding: 0 45px 0 43px;

    border: 1px solid var(--border);
    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: var(--text);

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #818cf8;

    box-shadow:
        0 0 0 4px
        rgba(99, 102, 241, 0.1);
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;
}

.password-toggle:hover {
    background: #f8fafc;

    color: #475569;
}

.login-button {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 6px;

    border: 0;
    border-radius: 11px;

    background: var(--primary);

    color: #ffffff;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.login-button:hover {
    background: var(--primary-hover);
}

.login-button:active {
    transform: translateY(1px);
}

.login-help {
    margin-top: 20px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .login-page {
        display: block;
    }

    .login-brand {
        min-height: auto;

        padding: 30px;
    }

    .login-brand-content {
        margin: 60px 0;
    }

    .login-brand-content h1 {
        font-size: 36px;
    }

    .login-brand-footer {
        display: none;
    }

    .login-content {
        min-height: auto;

        padding: 50px 20px;
    }

}

@media (max-width: 520px) {

    .login-brand {
        padding: 24px 20px;
    }

    .login-brand-content {
        margin: 45px 0 20px;
    }

    .login-brand-content h1 {
        font-size: 30px;
    }

    .login-brand-content p {
        display: none;
    }

    .login-content {
        padding: 35px 16px;
    }

    .login-form {
        padding: 22px;
    }

}

.login-alert {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
    padding: 13px 14px;

    border: 1px solid #fecaca;
    border-radius: 11px;

    background: #fef2f2;
    color: #b91c1c;

    font-size: 12px;
}

.login-alert i {
    flex-shrink: 0;
}