/**
 * Authentication Pages — Themed Styles
 * Split-screen design with animated left panel and form on right.
 * All colors use --abl-* variables from abl-common-ui-themes.css.
 * @version 2.0.0
 */

/* ============================================
   RESET & BASE
   ============================================ */

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

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0; /* Override base.css 60px header space — auth pages have no header */
}

/* ============================================
   LAYOUT
   ============================================ */

.abl-auth-login-container {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 0;
}

/* ============================================
   LEFT PANEL — ANIMATED VISUAL
   ============================================ */

.abl-auth-login-left {
    flex: 1;
    background: linear-gradient(135deg, #0ED9B4 0%, #7B61FF 50%, #FF5FA0 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.abl-auth-login-left-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* Title & Subtitle */
.abl-auth-login-left-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--abl-btn-primary-text, #ffffff);
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.abl-auth-gradient-text {
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
}

.abl-auth-login-left-subtitle {
    font-size: var(--font-size-lg, 20px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--spacing-3xl, 48px);
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Feature Cards */
.abl-auth-feature-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.abl-auth-feature-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.abl-auth-card-1, .card-1 { animation-delay: 0.2s; }
.abl-auth-card-2, .card-2 { animation-delay: 0.4s; }
.abl-auth-card-3, .card-3 { animation-delay: 0.6s; }

.abl-auth-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.abl-auth-feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.abl-auth-feature-card:hover .abl-auth-feature-icon {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(5deg) scale(1.1);
}

.abl-auth-feature-text {
    flex: 1;
}

.abl-auth-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.abl-auth-feature-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* Floating Shapes */
.abl-auth-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.abl-auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatSlow ease-in-out infinite;
}

.abl-auth-shape-1, .shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-duration: 25s;
}

.abl-auth-shape-2, .shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.abl-auth-shape-3, .shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    top: 40%;
    left: -50px;
    animation-duration: 30s;
}

/* ============================================
   RIGHT PANEL — FORM
   ============================================ */

.abl-auth-login-right {
    flex: 1;
    background: var(--abl-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.abl-auth-login-form-container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 1s ease;
}

/* Home back-link — subtle styled hyperlink above the form that takes
   the user back to the marketing home page. Replaces the old logo-as-
   back-link which showed the APP_NAME and confused users. */
.abl-auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    padding: 6px 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--abl-muted, #6B7280);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.abl-auth-home-link::before {
    content: '\2190';
    font-size: 16px;
    transition: transform 0.2s ease;
}

.abl-auth-home-link:hover {
    color: var(--abl-accent);
}

.abl-auth-home-link:hover::before {
    transform: translateX(-3px);
}

/* Form Header */
.abl-auth-login-header {
    margin-bottom: 32px;
}

.abl-auth-login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--abl-text);
    margin-bottom: 8px;
}

.abl-auth-login-subtitle {
    font-size: 16px;
    color: var(--abl-muted);
    line-height: 1.5;
}

/* Alert Messages */
.abl-auth-login-alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.abl-auth-alert-wrapper {
    height: 50px;
    display: flex;
    align-items: center;
    margin: -8px 0 8px;
}

.abl-auth-login-alert.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
    border: 1px solid #22C55E;
}

.abl-auth-login-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.abl-auth-login-alert.info {
    background: var(--abl-highlight-bg);
    color: var(--abl-accent);
    border: 1px solid var(--abl-accent);
}

.abl-auth-passwordless-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.abl-auth-passwordless-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--abl-border, #E2E4EA);
    border-radius: 10px;
    background: var(--abl-card, #FFFFFF);
    color: var(--abl-text, #374151);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abl-auth-passwordless-btn:hover {
    border-color: var(--abl-accent, #3B82F6);
    background: var(--abl-surface, #F8FAFC);
    transform: translateY(-1px);
}

.abl-auth-passwordless-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.abl-auth-passwordless-btn svg {
    color: var(--abl-accent, #3B82F6);
    flex-shrink: 0;
}

.abl-auth-flash-auto-hide {
    animation: flashFadeOut 5s ease forwards;
}

@keyframes flashFadeOut {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Form */
.abl-auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.abl-auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abl-auth-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--abl-text);
}

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

.abl-auth-input-icon {
    position: absolute;
    left: 16px;
    color: var(--abl-muted);
    pointer-events: none;
}

.abl-auth-form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 16px;
    color: var(--abl-text);
    background: var(--abl-surface);
    border: 2px solid var(--abl-border);
    border-radius: var(--radius-lg, 12px);
    transition: all 0.2s ease;
    font-family: inherit;
}

.abl-auth-form-input::placeholder {
    color: var(--abl-muted);
}

.abl-auth-form-input:focus {
    outline: none;
    background: var(--abl-surface);
    border-color: var(--abl-accent);
    box-shadow: 0 0 0 4px var(--abl-highlight-bg);
}

.abl-auth-toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--abl-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.abl-auth-toggle-password:hover {
    color: var(--abl-accent);
}

.abl-auth-password-hint {
    font-size: 12px;
    color: var(--abl-muted);
    margin-top: 6px;
}

/* Form Options */
.abl-auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 8px;
}

.abl-auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.abl-auth-checkbox-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--abl-accent);
}

.abl-auth-checkbox-text {
    font-size: 14px;
    color: var(--abl-muted);
    user-select: none;
}

.abl-auth-forgot-link {
    font-size: 14px;
    color: var(--abl-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.abl-auth-forgot-link:hover {
    color: var(--abl-accent);
}

/* Submit Button */
.abl-auth-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--abl-btn-primary-text, #ffffff);
    background: linear-gradient(135deg, #0ED9B4, #7B61FF);
    border: none;
    border-radius: var(--radius-lg, 12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--abl-card-shadow);
    position: relative;
    overflow: hidden;
}

.abl-auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.abl-auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--abl-card-shadow);
}

.abl-auth-submit-btn:hover::before {
    left: 100%;
}

.abl-auth-submit-btn:active {
    transform: translateY(0);
}

.abl-auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.abl-auth-btn-arrow {
    transition: transform 0.3s ease;
}

.abl-auth-submit-btn:hover .abl-auth-btn-arrow {
    transform: translateX(4px);
}

.abl-auth-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.abl-auth-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Form Footer */
.abl-auth-login-footer {
    margin-top: 32px;
    text-align: center;
}

.abl-auth-footer-text {
    font-size: 14px;
    color: var(--abl-muted);
}

.abl-auth-footer-link {
    color: var(--abl-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.abl-auth-footer-link:hover {
    color: var(--abl-accent);
}

/* ============================================
   REGISTER — NAME ROW (side by side)
   ============================================ */

.abl-auth-form-row {
    display: flex;
    gap: 12px;
}

.abl-auth-form-row .abl-auth-form-group {
    flex: 1;
}

.abl-auth-form-input--no-icon {
    padding-left: 14px;
}

/* ============================================
   REGISTER — EMAIL VALIDATION INDICATOR
   ============================================ */

.abl-auth-email-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* ============================================
   REGISTER — PASSWORD STRENGTH BAR
   ============================================ */

.abl-auth-strength-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--abl-border, #1F2A3A);
    margin-top: 8px;
    overflow: hidden;
    display: none;
}

.abl-auth-strength-bar.visible {
    display: block;
}

.abl-auth-strength-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.abl-auth-strength-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    min-height: 16px;
}

/* ============================================
   REGISTER — REQUIREMENTS CHECKLIST
   ============================================ */

.abl-auth-requirements {
    background: var(--abl-surface, #111C2E);
    border: 1px solid var(--abl-border, #1F2A3A);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
    display: none;
}

.abl-auth-requirements.visible {
    display: block;
    animation: slideDown 0.2s ease;
}

.abl-auth-requirements-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--abl-muted, #64748B);
    margin-bottom: 10px;
}

.abl-auth-requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.abl-auth-req {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--abl-muted, #94A3B8);
    transition: color 0.2s ease;
}

.abl-auth-req.met {
    color: #16A34A;
}

.abl-auth-req-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--abl-border, #1F2A3A);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.abl-auth-req.met .abl-auth-req-icon {
    background: #DCFCE7;
}

.abl-auth-req.met .abl-auth-req-icon::after {
    content: '';
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #16A34A;
    border-bottom: 1.5px solid #16A34A;
    transform: rotate(-45deg) translateY(-1px);
}

/* ============================================
   REGISTER — LINKS & CONSENT
   ============================================ */

.abl-auth-link {
    color: var(--abl-accent, #3B82F6);
    text-decoration: none;
    font-weight: 600;
}

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

.abl-auth-checkbox-text--muted {
    color: var(--abl-muted, #94A3B8);
}

.abl-auth-footer-consent {
    font-size: 11px;
    color: var(--abl-muted, #94A3B8);
    margin-top: 8px;
}

/* ============================================
   LEGAL MODALS (Terms + Privacy)
   ============================================ */

.abl-auth-legal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.abl-auth-legal-overlay.active {
    display: flex;
}

.abl-auth-legal-modal {
    background: var(--abl-card, #13141F);
    border: 1px solid var(--abl-border, #1C1D2E);
    border-radius: 12px;
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.abl-auth-legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--abl-border, #1C1D2E);
    flex-shrink: 0;
}

.abl-auth-legal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--abl-text, #E2E8F0);
    margin: 0;
}

.abl-auth-legal-close {
    background: none;
    border: none;
    color: var(--abl-muted, #94A3B8);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.abl-auth-legal-close:hover {
    color: var(--abl-text, #E2E8F0);
}

.abl-auth-legal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--abl-text, #CBD5E1);
}

.abl-auth-legal-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--abl-text, #E2E8F0);
    margin: 20px 0 8px;
}

.abl-auth-legal-body h4:first-of-type {
    margin-top: 8px;
}

.abl-auth-legal-body p {
    margin: 0 0 12px;
    color: var(--abl-muted, #94A3B8);
}

.abl-auth-legal-updated {
    font-size: 11px;
    color: var(--abl-muted, #64748B);
    font-style: italic;
    margin-bottom: 16px;
}

/* ============================================
   STEPPER (Account → Verify → Team → Done)
   ============================================ */

.abl-auth-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.abl-auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.abl-auth-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--abl-surface, #111C2E);
    border: 2px solid var(--abl-border, #1F2A3A);
    color: var(--abl-muted, #64748B);
}

.abl-auth-step.active .abl-auth-step-circle {
    background: linear-gradient(135deg, #6366F1, #3B82F6, #22D3EE);
    border: none;
    color: #FFFFFF;
}

.abl-auth-step.completed .abl-auth-step-circle {
    background: #064E3B;
    border: none;
    color: #4ADE80;
}

.abl-auth-step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--abl-muted, #64748B);
}

.abl-auth-step.active .abl-auth-step-label {
    color: var(--abl-accent, #3B82F6);
    font-weight: 700;
}

.abl-auth-step.completed .abl-auth-step-label {
    color: #4ADE80;
}

.abl-auth-step-line {
    width: 60px;
    height: 2px;
    background: var(--abl-border, #1F2A3A);
    margin: 0 4px;
    margin-bottom: 20px;
}

.abl-auth-step-line.completed {
    background: #4ADE80;
}

/* ============================================
   VERIFY EMAIL PAGE
   ============================================ */

.abl-auth-verify-icon {
    text-align: center;
    margin-bottom: 20px;
}

.abl-auth-verify-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--abl-surface, #EEF4FF);
    border-radius: 50%;
}

.abl-auth-verify-email {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--abl-accent, #3B82F6);
    margin-bottom: 20px;
}

.abl-auth-verify-check {
    text-align: center;
    margin-bottom: 8px;
}

.abl-auth-verified-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--abl-surface, #111C2E);
    border: 1px solid var(--abl-border, #1F2A3A);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 20px;
}

.abl-auth-verified-check {
    width: 28px;
    height: 28px;
    background: var(--abl-border, #1F2A3A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.abl-auth-verified-email {
    font-size: 13px;
    font-weight: 700;
    color: var(--abl-text, #E2E8F0);
}

.abl-auth-verified-meta {
    font-size: 11px;
    color: var(--abl-muted, #94A3B8);
    margin-top: 2px;
}

/* ============================================
   6-DIGIT OTP INPUT
   ============================================ */

.abl-auth-otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 16px;
}

.abl-auth-otp-box {
    width: 50px;
    height: 62px;
    border-radius: 12px;
    border: 2px solid var(--abl-border, #E2E4EA);
    background: var(--abl-card, #FFFFFF);
    color: var(--abl-text, #0F172A);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    outline: none;
    transition: border-color 0.15s ease;
}

.abl-auth-otp-box:focus {
    border-color: var(--abl-accent, #3B82F6);
}

.abl-auth-otp-timer {
    text-align: center;
    font-size: 12px;
    color: var(--abl-muted, #6B7280);
    margin-bottom: 20px;
}

.abl-auth-otp-timer span {
    font-weight: 700;
    color: var(--abl-text, #0F172A);
}

/* ============================================
   SOCIAL LOGIN BUTTONS
   ============================================ */

.abl-auth-social-buttons {
    display: flex;
    gap: 12px;
}

.abl-auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--abl-border);
    border-radius: 10px;
    background: var(--abl-card);
    color: var(--abl-text);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abl-auth-social-btn:hover {
    border-color: var(--abl-accent);
    background: var(--abl-surface);
    transform: translateY(-1px);
}

.abl-auth-social-icon {
    flex-shrink: 0;
}

/* ============================================
   DIVIDER
   ============================================ */

.abl-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

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

.abl-auth-divider-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--abl-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ============================================
   MAGIC LINK BUTTON
   ============================================ */

.abl-auth-magic-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--abl-border);
    border-radius: 10px;
    background: var(--abl-card);
    color: var(--abl-text);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.abl-auth-magic-link-btn svg {
    color: var(--abl-accent);
    flex-shrink: 0;
}

.abl-auth-magic-link-btn:hover {
    border-color: var(--abl-accent);
    background: var(--abl-surface);
    transform: translateY(-1px);
}

.abl-auth-magic-link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, -30px); }
    75% { transform: translate(-20px, 10px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .abl-auth-login-left, .abl-auth-login-right {
        padding: 40px;
    }

    .abl-auth-login-left-title {
        font-size: 36px;
    }

    .abl-auth-login-left-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        height: auto;
    }

    .abl-auth-login-container {
        flex-direction: column;
        min-height: auto;
        overflow-y: auto;
    }

    .abl-auth-login-left {
        min-height: 300px;
        max-height: 40vh;
        padding: 32px;
        flex: none;
    }

    .abl-auth-login-left-title {
        font-size: 28px;
    }

    .abl-auth-login-left-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .abl-auth-feature-cards {
        display: none;
    }

    .abl-auth-login-right {
        padding: 32px 24px;
        flex: none;
        min-height: auto;
    }

    .abl-auth-login-title {
        font-size: 28px;
    }

    .abl-auth-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .abl-auth-login-left {
        padding: 24px;
    }

    .abl-auth-login-right {
        padding: 24px 16px;
    }

    .abl-auth-login-title {
        font-size: 24px;
    }

    .abl-auth-form-input {
        font-size: 16px;
    }
}

/* ============================================
   SIGNED-OUT / SESSION-EXPIRED STATUS CARDS
   ============================================ */

.abl-auth-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0 32px;
    width: 100%;
    max-width: 440px;
}

.abl-auth-status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.abl-auth-status-icon--logout {
    background: rgba(99, 102, 241, 0.1);
    color: #818CF8;
}

.abl-auth-status-icon--expired {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.abl-auth-status-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--abl-heading, var(--abl-text, #E2E8F0));
    margin: 0 0 12px;
}

.abl-auth-status-subtitle {
    font-size: 14px;
    color: var(--abl-muted, #94A3B8);
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 380px;
}

.abl-auth-status-btn {
    width: 100%;
    max-width: 440px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abl-auth-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--abl-card-shadow);
}

.abl-auth-status-btn:active {
    transform: translateY(0);
}

.abl-auth-status-btn--primary {
    background: linear-gradient(135deg, #0ED9B4, #7B61FF);
    color: var(--abl-btn-primary-text, #ffffff);
}

.abl-auth-status-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.abl-auth-status-btn--primary:hover::before {
    left: 100%;
}

.abl-auth-status-btn--secondary {
    background: var(--abl-surface, #111C2E);
    color: var(--abl-text, #CBD5E1);
    border: 1px solid var(--abl-border, #1F2A3A);
}

.abl-auth-status-footer {
    font-size: 12px;
    color: var(--abl-muted, #94A3B8);
    margin-top: 20px;
}

.abl-auth-status-link {
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
}

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

.abl-auth-status-card--compact {
    padding: 24px 0 16px;
}

.abl-auth-status-card--compact .abl-auth-status-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
}

.abl-auth-status-card--compact .abl-auth-status-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.abl-auth-status-card--compact .abl-auth-status-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
}

.abl-auth-status-note {
    font-size: 11px;
    color: var(--abl-muted, #64748B);
    margin-top: 16px;
}

.abl-auth-status-icon--locked {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.abl-auth-status-icon--blocked {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Countdown timer ring */
.abl-auth-countdown {
    margin-bottom: 28px;
}

.abl-auth-countdown-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.abl-auth-countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.abl-auth-countdown-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--abl-text, #E2E8F0);
}

.abl-auth-countdown-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--abl-muted, #64748B);
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Recovery options */
.abl-auth-recovery-options {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.abl-auth-recovery-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--abl-surface, #111C2E);
    border: 1px solid var(--abl-border, #1F2A3A);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.abl-auth-recovery-option:hover {
    border-color: var(--abl-accent, #3B82F6);
}

.abl-auth-recovery-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    flex-shrink: 0;
}

.abl-auth-recovery-option-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--abl-text, #E2E8F0);
    text-align: left;
}

.abl-auth-recovery-option-desc {
    font-size: 11px;
    color: var(--abl-muted, #94A3B8);
    margin-top: 2px;
    text-align: left;
}


/* Last session info card */
.abl-auth-session-card {
    width: 100%;
    max-width: 440px;
    background: var(--abl-surface, #111C2E);
    border: 1px solid var(--abl-border, #1F2A3A);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    text-align: left;
}

.abl-auth-session-card-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--abl-muted, #6B7280);
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.abl-auth-session-card-row {
    font-size: 12px;
    color: var(--abl-muted, #94A3B8);
    line-height: 1.6;
}

.abl-auth-session-card-row strong {
    color: var(--abl-text, #E2E8F0);
    font-weight: 600;
}
