/* ═══ Seezy — Auth Pages (Login, Register, Forgot, Reset) ═══ */

:root {
    --teal: #1D9E75;
    --teal-dark: #17845f;
    --dark: #1a1a2e;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-300: #dee2e6;
    --gray-500: #868e96;
    --gray-600: #6b7280;
    --gray-800: #343a40;
    --white: #ffffff;
    --red: #e74c3c;
    --green: #27ae60;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--dark);
    min-height: 100vh;
}

/* ─── Layout Split ─── */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.auth-logo {
    position: absolute;
    top: 32px;
    left: 40px;
}
.auth-logo img {
    height: 56px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-footer {
    position: absolute;
    bottom: 24px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ─── Right Panel (branding) ─── */
.auth-right {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(29,158,117,0.15), transparent 70%);
    pointer-events: none;
}

.auth-right-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.auth-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.auth-star {
    color: var(--teal);
    font-size: 1.4rem;
    margin-right: 4px;
}

.auth-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ─── Typography ─── */
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ─── Form ─── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 0.82rem;
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}
.form-link:hover {
    text-decoration: underline;
}

.form-group input {
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.form-group input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(29,158,117,0.1);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

/* ─── Plan Selector ─── */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.plan-option {
    cursor: pointer;
    position: relative;
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: center;
}

.plan-option input:checked + .plan-option-content {
    border-color: var(--teal);
    background: rgba(29,158,117,0.05);
}

.plan-option-name {
    font-weight: 700;
    font-size: 0.88rem;
}

.plan-option-price {
    font-size: 0.82rem;
    color: var(--teal);
    font-weight: 600;
}

.plan-option-sms {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.plan-option-badge {
    font-size: 0.65rem;
    background: var(--teal);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Submit Button ─── */
.btn-auth {
    padding: 16px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-auth:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

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

/* ─── Links ─── */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-switch a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

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

/* ─── Flash Messages ─── */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.flash p + p { margin-top: 4px; }

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-right {
        display: none;
    }

    .auth-left {
        padding: 30px 20px;
    }

    .auth-logo {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 32px;
    }

    .auth-footer {
        position: relative;
        bottom: auto;
        margin-top: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .plan-selector {
        grid-template-columns: 1fr;
    }
}

/* ═══ Toasts — copiés depuis app.css pour les pages auth ═══ */

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 48px);
}

.toast {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
    transition: opacity 0.28s cubic-bezier(0.22,1,0.36,1), transform 0.28s cubic-bezier(0.22,1,0.36,1);
    will-change: transform, opacity;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.toast-msg {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    padding-top: 6px;
}
.toast-close {
    flex-shrink: 0;
    background: none; border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    transition: color 0.15s, background 0.15s;
}
.toast-close:hover { color: #374151; background: #f3f4f6; }

.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
}
.toast-progress.running { animation: toastProgress linear both; }

.toast-success .toast-icon   { background: #dcfce7; color: #16a34a; }
.toast-success .toast-progress { background: #22c55e; }
.toast-success { border-left: 3px solid #22c55e; }

.toast-error .toast-icon     { background: #fee2e2; color: #dc2626; }
.toast-error .toast-progress { background: #ef4444; }
.toast-error { border-left: 3px solid #ef4444; }

.toast-warning .toast-icon   { background: #fef3c7; color: #d97706; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-warning { border-left: 3px solid #f59e0b; }

.toast-info .toast-icon      { background: #dbeafe; color: #2563eb; }
.toast-info .toast-progress  { background: #3b82f6; }
.toast-info { border-left: 3px solid #3b82f6; }

