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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #eef6ff 100%);
    color: #0f172a;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
    gap: 28px;
    align-items: stretch;
}

.login-brand-panel,
.login-card {
    border-radius: 28px;
    border: 1px solid #dbe5f1;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #38bdf8 100%);
    color: #ffffff;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
}

.login-brand-mark {
    position: relative;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.login-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.55;
}

.login-brand-mark .icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    color: #ffffff;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    font-size: 40px;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.login-brand-panel p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-size: 16px;
}

.login-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.login-feature {
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.login-feature strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.login-feature span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 14px;
}

.login-card {
    align-self: center;
    padding: 34px 30px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.login-card-head {
    margin-bottom: 24px;
}

.login-form-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf2ff;
    border: 1px solid #d1e3ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-card-head h2 {
    margin: 14px 0 8px;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.login-card-head p {
    color: #64748b;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.login-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.login-alert-success {
    color: #166534;
    background: #effcf3;
    border: 1px solid #bbf7d0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.login-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-field input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.login-submit {
    min-height: 52px;
    margin-top: 6px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.login-links {
    margin-top: 16px;
}

.login-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-link-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.14);
}

.login-note {
    margin-top: 18px;
    color: #64748b;
    line-height: 1.55;
    font-size: 13px;
}

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

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

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

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

@media (max-width: 768px) {
    .login-page {
        padding: 16px;
    }

    .login-brand-panel,
    .login-card {
        border-radius: 22px;
    }

    .login-brand-panel {
        padding: 28px 22px;
    }

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

    .login-brand-panel h1 {
        font-size: 32px;
    }

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