.login-shell {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    overflow: hidden;
    gap: 0;
}

.login-shell.card-surface {
    padding: 0;
    border-radius: 36px;
}

.login-shell.single-panel {
    max-width: 520px;
    display: block;
    padding: clamp(32px, 5vw, 48px);
    border-radius: 28px;
    margin: clamp(24px, 6vh, 60px) auto;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, rgba(247, 248, 255, 0.9), #ffffff);
}

.login-shell.single-panel .form-panel {
    padding: 0;
}

.login-shell.single-panel .form-header:first-of-type {
    margin-bottom: 12px;
}

.hero {
    position: relative;
    padding: clamp(32px, 5vw, 56px);
    background: linear-gradient(160deg, rgba(76, 99, 255, 0.12), rgba(255, 159, 92, 0.2));
    border-right: 1px solid rgba(60, 72, 117, 0.08);
}

.hero::after {
    content: "";
    position: absolute;
    inset: clamp(24px, 4vw, 40px);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.65);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #122045;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    color: #ff7a18;
    letter-spacing: 0.04em;
}

.hero-title {
    margin: 24px 0 14px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 600;
}

.hero-desc {
    margin: 0 0 32px;
    color: rgba(18, 32, 69, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-stats .stat-card {
    flex: 1 1 140px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(60, 72, 117, 0.1);
}

.hero-stats .stat-label {
    font-size: 13px;
    color: rgba(18, 32, 69, 0.6);
    margin-bottom: 6px;
}

.hero-stats .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #122045;
}

.form-panel {
    padding: clamp(32px, 5vw, 64px);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--text-primary);
}

.form-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.input-shell {
    position: relative;
}

.input-shell input {
    width: 100%;
    border: 1px solid rgba(60, 72, 117, 0.2);
    border-radius: 16px;
    padding: 16px 18px;
    background: #f6f8ff;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-shell input:focus {
    outline: none;
    border-color: rgba(76, 99, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(76, 99, 255, 0.12);
}

.input-shell .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-options.stacked {
    flex-wrap: wrap;
    gap: 10px;
}

.form-options input[type="checkbox"] {
    accent-color: var(--primary);
    margin-right: 6px;
}

.form-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.form-brand strong {
    font-size: 16px;
    color: var(--text-primary);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(76, 99, 255, 0.12);
    color: var(--primary);
}

.btn-primary,
.btn-secondary {
    width: 100%;
    border-radius: 18px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary {
    margin-top: 12px;
    background: #f2f4ff;
    color: var(--primary-dark);
    border: 1px solid rgba(76, 99, 255, 0.18);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(76, 99, 255, 0.35);
}

.login-message {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.login-message.error {
    display: block;
    border: 1px solid rgba(255, 138, 138, 0.5);
    color: #c0392b;
    background: rgba(255, 138, 138, 0.12);
}

.login-footnote {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .login-shell.card-surface {
        border-radius: 24px;
    }

    .hero {
        border-right: none;
        border-bottom: 1px solid rgba(60, 72, 117, 0.08);
    }
}

