/**
 * CSS Neural Glass — Stiluri dedicate pentru paginile de autentificare (signup/login)
 * Design solid light cu gradient background, particule animate, font Outfit
 *
 * Ultima modificare: 2026-02-22 12:22
 * Modificari:
 *   2026-02-22 12:22 — Înlocuit panoul pachete cu panou informativ (beneficii + stats), card mai lat
 *   2026-02-17 16:15 — Fix centrare iconiță toggle parolă (era sus, acum centrată pe input)
 *   2026-02-17 15:30 — Override complet Metronic background pe body, fix bandă dreapta
 *   2026-02-17 14:00 — Logo și titlu mov (#6a4ce0), padding body 40px pentru centrare mai bună
 *   2026-02-17 01:10 — Refacere completă: doar light mode, card solid alb, background gradient purple, shadows mari
 *   2026-02-16 23:45 — Creare inițială: glass cards, particule, gradient buttons, plan cards, responsive
 */

/* ===== FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ===== OVERRIDE METRONIC — anulăm background-ul global pe paginile auth ===== */
html:has(.auth-neural-glass) {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
}
body#kt_body.auth-neural-glass,
body.auth-neural-glass {
    background: linear-gradient(135deg, #5b3fd4 0%, #6a4ce0 20%, #7c5cfc 40%, #8b6cfa 60%, #7c5cfc 80%, #6a4ce0 100%) !important;
    background-image: linear-gradient(135deg, #5b3fd4 0%, #6a4ce0 20%, #7c5cfc 40%, #8b6cfa 60%, #7c5cfc 80%, #6a4ce0 100%) !important;
}

/* ===== RESET AUTH PAGE ===== */
.auth-neural-glass {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ===== CANVAS PARTICULE ===== */
.auth-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== CARD PRINCIPAL ===== */
.auth-glass-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(124, 92, 252, 0.08);
    box-shadow:
        0 25px 80px rgba(60, 30, 140, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Gradient bar pe top */
.auth-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c5cfc, #c84cfa);
    z-index: 10;
}

/* ===== SIGNUP CARD — 2 coloane ===== */
.auth-signup-card {
    display: flex;
    max-width: 1020px;
    width: 100%;
}

/* ===== LOGIN CARD — centrat ===== */
.auth-login-card {
    max-width: 440px;
    width: 100%;
}
.auth-login-card .auth-login-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ===== ZONA STÂNGA (informații) ===== */
.auth-info-side {
    flex: 0 0 440px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #ece8f4;
}

.auth-info-headline {
    font-size: 26px;
    font-weight: 800;
    color: #1a1626;
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* ===== BENEFICII ===== */
.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
}
.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.auth-benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(106,76,224,0.1), rgba(200,76,250,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6a4ce0;
}
.auth-benefit-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1626;
    margin-bottom: 2px;
}
.auth-benefit-desc {
    font-size: 11.5px;
    color: #7a7490;
    line-height: 1.4;
}

/* ===== STATS ROW ===== */
.auth-stats-row {
    display: flex;
    gap: 12px;
}
.auth-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(106,76,224,0.04);
    border: 1px solid rgba(106,76,224,0.08);
}
.auth-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #6a4ce0;
    line-height: 1;
    margin-bottom: 4px;
}
.auth-stat-label {
    font-size: 10px;
    color: #9a94a8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== LEGACY: plans-side (backward compat) ===== */
.auth-plans-side {
    flex: 0 0 440px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #ece8f4;
}

/* ===== ZONA DREAPTA (formular) ===== */
.auth-form-side {
    flex: 1;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== TEXTE ===== */
.auth-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #6a4ce0;
}

.auth-subtitle {
    font-size: 13px;
    margin: 0;
    color: #7a7490;
}

.auth-tagline {
    font-size: 13px;
    color: #7a7490;
    margin: 0 0 20px;
    line-height: 1.5;
}

.auth-section-label {
    font-size: 9px;
    font-weight: 700;
    color: #9a94a8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.auth-text-secondary {
    color: #7a7490;
}

.auth-text-accent {
    color: #6a4ce0;
    font-weight: 500;
}

.auth-text-link {
    color: #6a4ce0;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-text-link:hover {
    color: #5a3cc8;
}

/* ===== SEPARATOR ===== */
.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.auth-separator-line {
    height: 1px;
    flex: 1;
    background: #e4e0ee;
}
.auth-separator-text {
    font-size: 11px;
    color: #9a94a8;
    font-weight: 500;
}

/* ===== PLAN SEPARATOR ===== */
.auth-plans-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.auth-plans-separator-line {
    height: 1px;
    flex: 1;
    background: #ece8f4;
}

/* ===== INPUTS ===== */
.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: #f5f3fa;
    border: 1px solid #d8d2e6;
    border-radius: 12px;
    color: #1a1626;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-sizing: border-box;
}
.auth-input::placeholder {
    color: #a09ab0;
}
.auth-input:focus {
    background: #ffffff;
    border-color: #6a4ce0;
    box-shadow: 0 0 0 3px rgba(106, 76, 224, 0.12);
}

.auth-input-group {
    position: relative;
    margin-bottom: 14px;
}
.auth-input-group .auth-input {
    padding-right: 44px;
}
.auth-input-toggle {
    position: absolute;
    right: 12px;
    top: auto;
    bottom: 0;
    height: 47px;
    transform: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.5;
    background: none;
    border: none;
    padding: 0;
    color: #7a7490;
    transition: opacity 0.2s;
}
.auth-input-toggle:hover {
    opacity: 0.8;
}

.auth-input-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a7490;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PASSWORD STRENGTH METER ===== */
.auth-strength-bars {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}
.auth-strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #e4e0ee;
    transition: background 0.3s;
}
.auth-strength-bar.active-1 { background: #e04060; }
.auth-strength-bar.active-2 { background: #d0a020; }
.auth-strength-bar.active-3 { background: #4080e0; }
.auth-strength-bar.active-4 { background: #20c080; }

.auth-strength-hint {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9a94a8;
}
.auth-strength-label {
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.auth-btn-gradient {
    background: linear-gradient(135deg, #7c5cfc, #c84cfa);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 20px rgba(106, 76, 224, 0.3);
    transition: all 0.3s;
    width: 100%;
    letter-spacing: 0.3px;
}
.auth-btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(106, 76, 224, 0.4);
}
.auth-btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-outline {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #d8d2e6;
    background: #f5f3fa;
    color: #1a1626;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}
.auth-btn-outline:hover {
    border-color: #b8b0d0;
    background: #eceafa;
}

/* ===== PLAN CARDS ===== */
.auth-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
}

.auth-plan-card {
    border: 1.5px solid #e4e0ee;
    border-radius: 16px;
    padding: 14px 12px;
    cursor: pointer;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.auth-plan-card:hover {
    border-color: #c8c0e0;
    background: rgba(106, 76, 224, 0.02);
}

.auth-plan-card.selected {
    border-color: #6a4ce0;
    background: rgba(106, 76, 224, 0.06);
    box-shadow: 0 0 0 1px rgba(106, 76, 224, 0.1), 0 4px 16px rgba(106, 76, 224, 0.08);
}

.auth-plan-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6a4ce0, #b040e0);
}

/* Radio indicator */
.auth-plan-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #c0b8d4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.auth-plan-card.selected .auth-plan-radio {
    border-color: #6a4ce0;
}
.auth-plan-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a4ce0, #b040e0);
    display: none;
}
.auth-plan-card.selected .auth-plan-radio-dot {
    display: block;
}

.auth-plan-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9a94a8;
    text-transform: uppercase;
}
.auth-plan-card.selected .auth-plan-name {
    color: #1a1626;
}

/* Badge recomandat */
.auth-plan-badge {
    display: inline-block;
    margin-bottom: 6px;
    margin-left: 24px;
    background: linear-gradient(135deg, #6a4ce0, #b040e0);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-plan-price {
    margin-bottom: 8px;
    margin-left: 24px;
}
.auth-plan-price-free {
    font-size: 20px;
    font-weight: 800;
    color: #20c080;
}
.auth-plan-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1a1626;
}
.auth-plan-price-period {
    font-size: 10px;
    color: #7a7490;
    margin-left: 3px;
}

.auth-plan-features {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: 24px;
}
.auth-plan-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #7a7490;
}
.auth-plan-feature-check {
    color: #20c080;
    font-size: 9px;
    font-weight: 700;
}

.auth-plan-trial {
    margin-top: 8px;
    margin-left: 24px;
    font-size: 9px;
    color: #6a4ce0;
    font-weight: 600;
}

/* ===== CHECKBOX (termeni) ===== */
.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #6a4ce0;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ===== FOOTER LINKS ===== */
.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.auth-footer-link {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}
.auth-footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== ALERT / ERROR ===== */
.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    display: none;
}
.auth-alert-danger {
    background: rgba(224, 64, 96, 0.08);
    border: 1px solid rgba(224, 64, 96, 0.15);
    color: #c03050;
}
.auth-field-error {
    font-size: 12px;
    color: #c03050;
    margin-top: 4px;
    display: none;
}

/* ===== SUCCESS MESSAGE ===== */
.auth-success {
    text-align: center;
    padding: 20px 0;
    display: none;
}
.auth-success-icon {
    font-size: 60px;
    margin-bottom: 16px;
}
.auth-success h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1626;
    margin-bottom: 8px;
}
.auth-success p {
    color: #7a7490;
    font-size: 14px;
    margin-bottom: 16px;
}
.auth-success .auth-countdown {
    color: #6a4ce0;
    font-weight: 700;
}

/* ===== PLANS INFO ===== */
.auth-plans-info {
    margin-top: 14px;
    font-size: 10px;
    color: #9a94a8;
    text-align: center;
    line-height: 1.6;
}

/* ===== SPINNER ===== */
.auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
}
@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ===== DIVIDER ===== */
.auth-divider {
    height: 1px;
    background: #ece8f4;
    margin: 24px 0 20px;
}

/* ===== LOGO + TITLU MOV ===== */
.auth-logo-fill { fill: #6a4ce0; }
.auth-logo-spark { fill: #c84cfa; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-signup-card {
        flex-direction: column;
        max-width: 500px;
    }
    .auth-info-side,
    .auth-plans-side {
        flex: none;
        border-right: none !important;
        border-bottom: 1px solid #ece8f4;
        padding: 24px 20px 20px;
    }
    .auth-info-headline {
        font-size: 22px;
    }
    .auth-form-side {
        padding: 24px 20px;
    }
    .auth-stats-row {
        gap: 8px;
    }
    .auth-stat-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-neural-glass {
        padding: 10px;
    }
    .auth-plans-grid {
        grid-template-columns: 1fr;
    }
    .auth-login-card {
        margin: 0 10px;
    }
}
