:root {
    --lb-primary: #006989;
    --lb-primary-dark: #004d66;
    --lb-primary-light: #008faf;
    --lb-primary-subtle: #e6f3f6;
    --lb-primary-muted: #b3d9e4;
    --lb-accent: #f0a04b;
    --lb-bg: #f0f6f8;
    --lb-surface: #ffffff;
    --lb-text: #1e2d32;
    --lb-text-muted: #5c7078;
    --lb-border: #d0e0e6;
    --lb-shadow: 0 12px 40px rgba(0, 77, 102, 0.12);
    --lb-radius: 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

.auth-body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--lb-text);
    background: var(--lb-bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-brand-panel {
    background: linear-gradient(160deg, var(--lb-primary-dark) 0%, var(--lb-primary) 55%, var(--lb-primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    max-width: 420px;
    text-align: center;
}

.auth-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-brand-tagline {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.auth-brand-features i {
    color: var(--lb-accent);
    font-size: 1.1rem;
}

.auth-main-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--lb-surface);
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius);
    box-shadow: var(--lb-shadow);
    padding: 2.25rem;
}

.auth-card-legal {
    max-width: 720px;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
}

.legal-section {
    margin-bottom: 1.35rem;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lb-primary-dark);
    margin-bottom: 0.45rem;
}

.legal-section p,
.legal-section li {
    color: var(--lb-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.legal-section ul {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.auth-card-header {
    margin-bottom: 1.75rem;
}

.auth-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lb-primary-dark);
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    color: var(--lb-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.auth-footer-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--lb-text-muted);
    text-align: center;
}

.form-label {
    font-weight: 600;
    color: var(--lb-text);
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border-color: var(--lb-border);
    border-radius: 0.625rem;
    padding: 0.65rem 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--lb-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 137, 0.15);
}

.btn-primary {
    background-color: var(--lb-primary);
    border-color: var(--lb-primary);
    border-radius: 0.625rem;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--lb-primary-dark);
    border-color: var(--lb-primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline-secondary {
    border-color: var(--lb-border);
    color: var(--lb-text-muted);
    border-radius: 0.625rem;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: var(--lb-primary-subtle);
    border-color: var(--lb-primary-muted);
    color: var(--lb-primary-dark);
}

.btn-success {
    background-color: var(--lb-primary);
    border-color: var(--lb-primary);
    border-radius: 0.625rem;
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--lb-primary-dark);
    border-color: var(--lb-primary-dark);
}

.auth-link {
    color: var(--lb-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--lb-primary-dark);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--lb-text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lb-border);
}

.alert {
    border-radius: 0.625rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: var(--lb-primary-subtle);
    border-color: var(--lb-primary-muted);
    color: var(--lb-primary-dark);
}

.alert-info {
    background-color: #eef8fb;
    border-color: var(--lb-primary-muted);
    color: var(--lb-primary-dark);
}

/* Wizard */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.wizard-step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--lb-primary-subtle);
    color: var(--lb-text-muted);
    border: 2px solid var(--lb-border);
    transition: all 0.2s ease;
}

.wizard-step.active .wizard-step-circle {
    background: var(--lb-primary);
    color: #fff;
    border-color: var(--lb-primary);
}

.wizard-step.completed .wizard-step-circle {
    background: var(--lb-primary-dark);
    color: #fff;
    border-color: var(--lb-primary-dark);
}

.wizard-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
    color: var(--lb-primary-dark);
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--lb-border);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem;
    max-width: 3rem;
    transition: background 0.2s ease;
}

.wizard-step-line.active {
    background: var(--lb-primary);
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lb-primary-dark);
    margin-bottom: 0.35rem;
}

.wizard-panel-subtitle {
    color: var(--lb-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lb-border);
}

.password-hints {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: var(--lb-primary-subtle);
    border-radius: 0.625rem;
    font-size: 0.85rem;
    color: var(--lb-text-muted);
}

.password-hints ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.field-validation-error,
.validation-summary-errors {
    color: #c0392b;
    font-size: 0.825rem;
}

.input-group-icon {
    position: relative;
}

.input-group-icon i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lb-text-muted);
    pointer-events: none;
}

.input-group-icon .form-control {
    padding-left: 2.5rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 2rem 1.5rem 1.5rem;
    }

    .auth-logo {
        max-width: 160px;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-brand-features {
        display: none;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .auth-main-panel {
        padding-top: 0;
    }
}

@media (max-width: 575.98px) {
    .wizard-step-label {
        display: none;
    }

    .wizard-step-line {
        max-width: 2rem;
    }
}
