:root {
    --navy-950: #0d1b2f;
    --navy-900: #16324f;
    --navy-700: #315f97;
    --cyan-400: #4f8fdf;
    --cyan-300: #8cbaf1;
    --pink-500: #94a3b8;
    --pink-400: #cbd5e1;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --border: rgba(15, 23, 42, 0.1);
    --text-main: #11203a;
    --text-soft: #5f6f88;
    --danger: #d84d68;
    --shadow-xl: 0 30px 80px rgba(4, 18, 43, 0.24);
}

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

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 20%, rgba(79, 143, 223, 0.2), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(148, 163, 184, 0.2), transparent 26%),
        linear-gradient(135deg, #09162f 0%, #16324f 48%, #3b6aa4 100%);
    padding: 26px;
}

.login-shell {
    min-height: calc(100vh - 52px);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(14px);
}

.login-showcase {
    position: relative;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at bottom right, rgba(79, 143, 223, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(6, 20, 45, 0.88), rgba(12, 33, 70, 0.76));
}

.login-showcase::after {
    content: '';
    position: absolute;
    inset: auto -120px -110px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 66%);
    pointer-events: none;
}

.showcase-badge {
    width: fit-content;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e7f4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-showcase h1 {
    max-width: 560px;
    margin-top: 28px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    color: #ffffff;
}

.login-showcase p {
    max-width: 540px;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(235, 244, 255, 0.78);
}

.showcase-grid {
    margin-top: 42px;
    display: grid;
    gap: 16px;
}

.showcase-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.showcase-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan-300);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase-card strong {
    color: #f8fbff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)),
        linear-gradient(135deg, rgba(79, 143, 223, 0.12), rgba(148, 163, 184, 0.12));
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 34px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 60px rgba(17, 32, 58, 0.12);
}

.logo-wrap {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79, 143, 223, 0.16), rgba(148, 163, 184, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.logo-wrap img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.login-copy {
    margin: 22px 0 28px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan-400);
}

.login-copy h2 {
    font-family: 'Sora', sans-serif;
    font-size: 34px;
    line-height: 1.15;
    color: #17263f;
}

.login-copy p {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

#form-login {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #274061;
}

.form-group input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text-main);
    font-size: 15px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    outline: none;
}

.form-group input::placeholder {
    color: #98a6ba;
}

.form-group input:focus {
    border-color: rgba(79, 143, 223, 0.42);
    box-shadow: 0 0 0 5px rgba(79, 143, 223, 0.12);
    transform: translateY(-1px);
}

.login-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px 0;
    color: var(--text-soft);
    font-size: 13px;
}

.btn-login {
    height: 58px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan-400), var(--navy-700));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow: 0 18px 34px rgba(49, 95, 151, 0.28);
}

.btn-login:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
}

.btn-login:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

#error-msg {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(216, 77, 104, 0.1);
    border: 1px solid rgba(216, 77, 104, 0.18);
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.login-footer {
    margin-top: 26px;
    padding-top: 22px;
    display: grid;
    gap: 14px;
    border-top: 1px solid rgba(17, 32, 58, 0.08);
}

.footer-item {
    display: grid;
    gap: 4px;
}

.footer-item strong {
    font-size: 13px;
    color: #203453;
}

.footer-item span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

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

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        padding: 38px 28px 24px;
    }

    .login-showcase h1 {
        max-width: none;
        font-size: clamp(28px, 7vw, 42px);
    }

    .login-showcase p {
        max-width: none;
        font-size: 16px;
    }

    .login-panel {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
    }

    .login-shell {
        min-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .login-showcase {
        padding: 30px 22px 18px;
    }

    .showcase-grid {
        margin-top: 26px;
    }

    .login-panel {
        padding: 18px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .login-copy h2 {
        font-size: 28px;
    }

    .form-group input {
        height: 52px;
        border-radius: 16px;
    }

    .btn-login {
        height: 54px;
    }
}
