.auth-body--split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #094099 100%);
    padding: 1.5rem;
}

.auth-shell {
    width: 100%;
    max-width: 900px;
}

.auth-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    overflow: hidden;
    min-height: 540px;
}

.auth-brand-panel {
    flex: 1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
}

.auth-brand-logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.qh-logo--auth-brand {
    max-height: 52px;
}

.auth-brand-header p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    line-height: 1.45;
}

.auth-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
}

.auth-feature-list li {
    font-size: 0.9rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.auth-feature-list li::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background: rgba(11, 87, 208, 0.15);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-meta-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--muted);
}

.auth-form-panel {
    flex: 1.15;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.5rem;
}

.auth-btn-sso {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d4d8dd;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-btn-sso:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-btn-sso:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-separator::before { margin-right: 0.75rem; }
.auth-separator::after { margin-left: 0.75rem; }

.auth-input-group {
    margin-bottom: 1.15rem;
    text-align: left;
}

.auth-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.auth-input-group input[type="email"],
.auth-input-group input[type="password"],
.auth-input-group input[type="text"],
.auth-input-group select,
.auth-input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
}

.auth-input-group textarea {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.45;
}

.auth-input-group select {
    cursor: pointer;
}

.auth-input-group input:focus,
.auth-input-group select:focus,
.auth-input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.15);
}

.auth-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--muted);
}

.auth-checkbox input {
    margin: 0;
}

.auth-forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-btn-submit {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.auth-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-turnstile-slot {
    margin-bottom: 1rem;
}

.auth-switch-mode {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-switch-mode a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.auth-switch-mode a:hover {
    text-decoration: underline;
}

.auth-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
}

.auth-form-panel .alert {
    margin-bottom: 1.25rem;
}

.auth-form-panel .form-check {
    margin: 1rem 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-form-panel .form-check a {
    color: var(--primary);
}

.auth-external-footer {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.auth-external-footer a {
    color: inherit;
    text-decoration: none;
}

.auth-external-footer a:hover {
    text-decoration: underline;
}

.auth-body--simple {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #094099 100%);
    padding: 1.5rem;
}

.auth-body--simple .auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-body--simple .auth-logo {
    display: block;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 0;
    text-decoration: none;
}

.qh-logo--auth-simple {
    max-height: 48px;
    margin: 0 auto;
}

.auth-body--simple .auth-legal-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

.auth-body--simple .auth-legal-footer a {
    color: var(--primary);
}

@media (max-width: 768px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-wrapper {
        max-width: 420px;
        margin: 0 auto;
        min-height: auto;
    }

    .auth-form-panel {
        padding: 2.5rem 2rem;
    }
}
