/* BlueCapital auth shell — uses lms-theme.css variables */

.auth-shell {
    min-height: 100vh;
    background: var(--lms-body-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.auth-shell__blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-shell__blob--primary {
    width: clamp(180px, 28vw, 320px);
    height: clamp(180px, 28vw, 320px);
    background: linear-gradient(135deg, var(--lms-primary) 0%, var(--lms-primary-dark) 100%);
    top: -4rem;
    right: -4rem;
    opacity: 0.92;
}

.auth-shell__blob--soft {
    width: clamp(140px, 22vw, 260px);
    height: clamp(140px, 22vw, 260px);
    background: var(--lms-primary-soft);
    bottom: -3rem;
    left: -3rem;
    opacity: 0.85;
}

.auth-shell__inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-panel {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 980px;
    width: 100%;
    background: var(--lms-surface);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px var(--lms-shadow-md);
    border: 1px solid var(--lms-border);
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-panel {
        grid-template-columns: 1fr 1.05fr;
        min-height: 640px;
    }
}

.auth-showcase {
    display: none;
    background: linear-gradient(160deg, var(--lms-primary-dark) 0%, var(--lms-primary) 55%, #3b9ec4 100%);
    color: #fff;
    padding: 2.5rem;
    position: relative;
}

@media (min-width: 992px) {
    .auth-showcase {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.auth-showcase__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
    background-size: 24px 24px;
}

.auth-showcase__content {
    position: relative;
    z-index: 1;
}

.auth-showcase__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.auth-showcase__lead {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 0.85rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

.auth-feature-list .feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-card {
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 576px) {
    .auth-card {
        padding: 2.5rem 2.25rem 2rem;
    }
}

.auth-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-brand__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: var(--lms-primary-soft);
    color: var(--lms-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.auth-brand__name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lms-brand);
    line-height: 1.2;
}

.auth-brand__tagline {
    font-size: 0.75rem;
    color: var(--lms-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.auth-brand__motto {
    font-size: 0.8rem;
    color: var(--lms-text-faint);
    margin-top: 0.35rem;
    font-style: italic;
}

.auth-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lms-text-strong);
    margin: 0 0 0.35rem;
}

.auth-subheading {
    font-size: 0.875rem;
    color: var(--lms-text-muted);
    margin: 0 0 1.25rem;
}

.auth-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
    .auth-method-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

.auth-method-tab {
    border: 1px solid var(--lms-border);
    background: var(--lms-surface-muted);
    color: var(--lms-text-muted);
    border-radius: 0.65rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.auth-method-tab i {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.auth-method-tab:hover {
    border-color: var(--lms-primary);
    color: var(--lms-primary);
}

.auth-method-tab.active {
    background: var(--lms-primary-soft);
    border-color: var(--lms-primary);
    color: var(--lms-primary-dark);
}

.auth-input-group {
    margin-bottom: 1rem;
}

.auth-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lms-text-strong);
    margin-bottom: 0.4rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--lms-text-faint);
    font-size: 0.85rem;
    pointer-events: none;
}

.auth-input-wrap .form-control {
    padding-left: 2.35rem;
    border-radius: 0.65rem;
    min-height: 2.75rem;
    border-color: var(--lms-border);
    background: var(--lms-input-bg);
    color: var(--lms-text);
}

.auth-input-wrap .form-control:focus {
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 0.2rem var(--lms-focus-ring);
}

.auth-input-wrap .password-toggle-btn {
    position: absolute;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: var(--lms-text-faint);
    padding: 0.25rem;
    cursor: pointer;
}

.auth-input-wrap .password-toggle-btn:hover {
    color: var(--lms-primary);
}

.auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.auth-remember-row label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--lms-text);
    margin: 0;
    cursor: pointer;
}

.auth-remember-row a {
    color: var(--lms-text-muted);
    text-decoration: none;
}

.auth-remember-row a:hover {
    color: var(--lms-primary);
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    border: none;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.auth-btn--primary {
    background: linear-gradient(135deg, var(--lms-primary) 0%, var(--lms-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(44, 125, 160, 0.35);
}

.auth-btn--success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.auth-btn--info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
}

.auth-btn--outline {
    background: var(--lms-surface);
    border: 1px solid var(--lms-border);
    color: var(--lms-text);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--lms-text-faint);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lms-border);
}

.auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-otp-grid input {
    width: 100%;
    aspect-ratio: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 1px solid var(--lms-border);
    border-radius: 0.55rem;
    background: var(--lms-input-bg);
    color: var(--lms-text);
}

.auth-otp-grid input:focus {
    outline: none;
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 0.15rem var(--lms-focus-ring);
}

.auth-success-panel {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.auth-success-panel .success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--lms-badge-success-bg);
    color: var(--lms-badge-success-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--lms-border);
}

.auth-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: var(--lms-text-muted);
    background: var(--lms-surface-muted);
    border: 1px solid var(--lms-border);
    border-radius: 2rem;
    padding: 0.25rem 0.65rem;
}

.auth-demo-roles {
    margin-top: 1rem;
    padding: 0.85rem;
    background: var(--lms-surface-muted);
    border-radius: 0.65rem;
    border: 1px dashed var(--lms-border);
}

.auth-demo-roles__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lms-text-faint);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-demo-roles__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.auth-demo-roles__links a {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    border-radius: 2rem;
    background: var(--lms-surface);
    border: 1px solid var(--lms-border);
    color: var(--lms-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-demo-roles__links a:hover {
    background: var(--lms-primary-soft);
    border-color: var(--lms-primary);
}

.auth-footer-note {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.72rem;
    color: var(--lms-text-faint);
    text-align: center;
}

.auth-panel-enter {
    animation: authFadeUp 0.35s ease;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
