.approval-page {
    margin: 0;
    background: #f8fafc;
    color: #1e293b;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.approval-card {
    max-width: 800px;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.approval-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.approval-card__brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.approval-brand-logo {
    max-height: 50px;
}

.approval-card__badge {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #dbeafe;
    color: #1e40af;
}

.approval-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.approval-meta__col {
    min-width: 0;
}

.approval-label {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.approval-strong {
    font-weight: 700;
}

.approval-muted {
    color: #64748b;
    font-size: 0.9rem;
}

.approval-order {
    margin-bottom: 2rem;
}

.approval-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.approval-table__head {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.approval-table__head--left {
    text-align: left;
}

.approval-table__head--center {
    text-align: center;
}

.approval-table__head--right {
    text-align: right;
}

.approval-table__cell {
    padding: 1rem 0;
    border-bottom: 1px solid #f8fafc;
}

.approval-table__cell--center {
    text-align: center;
}

.approval-table__cell--right {
    text-align: right;
}

.approval-table__subtle {
    font-size: 0.75rem;
    color: #64748b;
}

.approval-totals-wrap {
    display: flex;
    justify-content: flex-end;
}

.approval-totals {
    width: 300px;
    border-collapse: collapse;
}

.approval-totals td {
    padding: 0.5rem 0;
}

.approval-totals__label {
    padding-top: 1rem !important;
    font-weight: 700;
    color: #1e293b;
}

.approval-totals__value {
    padding-top: 1rem !important;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
}

.approval-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}

.approval-actions__text {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.approval-actions__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.approval-actions__form {
    width: 100%;
}

.approval-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.approval-btn:active {
    transform: scale(0.98);
}

.approval-btn--approve {
    background: #10b981;
    color: #fff;
}

.approval-btn--approve:hover {
    filter: brightness(1.06);
}

.approval-btn-link {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.approval-btn-link:hover {
    color: #b91c1c;
}

.approval-rejection {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    text-align: left;
}

.approval-rejection__title {
    margin: 0 0 0.75rem;
    color: #991b1b;
    font-weight: 700;
}

.approval-rejection__label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

.approval-rejection__textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border-radius: 0.375rem;
    border: 1px solid #fca5a5;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font: inherit;
    box-sizing: border-box;
}

.approval-rejection__textarea:focus {
    outline: 2px solid #ef4444;
    outline-offset: 1px;
}

.approval-rejection__actions {
    display: flex;
    gap: 0.75rem;
}

.approval-btn--reject {
    flex: 1;
    background: #ef4444;
    color: #fff;
}

.approval-btn--secondary {
    flex: 1;
    background: #f3f4f6;
    color: #4b5563;
}

.approval-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-bottom: 2.5rem;
    color: #64748b;
    font-size: 0.8rem;
}

.approval-result-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f8fafc;
    color: #1e293b;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

.approval-result-logo {
    margin-bottom: 1.5rem;
}

.approval-result-logo-image {
    max-height: 40px;
}

.approval-result-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 3rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

.approval-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.approval-result-icon--approve {
    background: #ecfdf5;
    color: #10b981;
}

.approval-result-icon--reject {
    background: #fef2f2;
    color: #ef4444;
}

.approval-result-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.approval-result-text {
    margin: 0 0 2rem;
    color: #64748b;
    line-height: 1.65;
}

.approval-result-copyright {
    margin-top: 1.25rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .approval-card {
        margin: 0;
        border-radius: 0;
        padding: 1.25rem;
    }

    .approval-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .approval-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .approval-rejection__actions {
        flex-direction: column;
    }

    .approval-result-card {
        padding: 2rem 1.25rem;
    }
}

/* ══════════════════════════════════════════════════
   LOGIN PAGE — Split-Screen Premium Design
   ══════════════════════════════════════════════════ */

/* Override body padding when on login page */
body.login-page {
    padding-top: 0 !important;
}

body.login-page .header {
    display: none;
}

body.login-page .footer,
body.login-page footer {
    display: none;
}

/* Wrapper */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ─── Panneau Branding (gauche) ─── */
.login-brand-panel {
    flex: 0 0 46%;
    background: linear-gradient(160deg, #064E3B 0%, #065F46 40%, #047857 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-brand-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Cercles décoratifs animés */
.login-brand-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.login-brand-circle--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    animation: loginFloat 20s ease-in-out infinite;
}

.login-brand-circle--2 {
    width: 250px;
    height: 250px;
    bottom: 60px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    animation: loginFloat 15s ease-in-out infinite reverse;
}

.login-brand-circle--3 {
    width: 150px;
    height: 150px;
    top: 45%;
    right: 15%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    animation: loginFloat 12s ease-in-out infinite 2s;
}

@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 12px) scale(0.97); }
}

/* Contenu branding */
.login-brand-content {
    position: relative;
    z-index: 2;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #a7f3d0;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.login-brand-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 3rem;
}

/* Features / Trust signals */
.login-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6ee7b7;
    transition: all 0.3s ease;
}

.login-brand-features li:hover .login-feature-icon {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.login-brand-features li strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.login-brand-features li span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.login-brand-copyright {
    position: absolute;
    bottom: 2rem;
    left: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}

/* ─── Panneau Formulaire (droite) ─── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #ffffff;
    position: relative;
}

.login-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 90% 10%, rgba(6, 78, 59, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Mobile branding (caché sur desktop) */
.login-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #064E3B;
    margin-bottom: 2rem;
}

.login-mobile-brand i {
    font-size: 1.2rem;
    color: #10B981;
}

/* Titres formulaire */
.login-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.login-form-subtitle {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 2.25rem;
}

/* Alerte erreur */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.login-alert--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.login-alert i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Formulaire */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field {
    display: flex;
    flex-direction: column;
}

.login-field-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1E293B;
    background: #F8FAFC;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.login-input::placeholder {
    color: #CBD5E1;
}

.login-input:hover {
    border-color: #CBD5E1;
    background: #ffffff;
}

.login-input:focus {
    outline: none;
    border-color: #064E3B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.08);
}

.login-input:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
    color: #064E3B;
}

/* Helper : on cible l'icône quand le champ focus */

/* Bouton Submit */
.login-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    height: 52px;
    margin-top: 0.5rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #064E3B, #065F46);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.2);
    position: relative;
    overflow: hidden;
}

.login-submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
}

.login-submit-btn:hover::after {
    opacity: 1;
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.2);
}

.login-submit-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.login-submit-btn:hover i {
    transform: translateX(4px);
}

/* Footer formulaire */
.login-form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.88rem;
    color: #94A3B8;
}

.login-signup-link {
    color: #064E3B;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.login-signup-link:hover {
    color: #10B981;
    text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .login-brand-panel {
        display: none;
    }

    .login-wrapper {
        min-height: 100vh;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }

    .login-mobile-brand {
        display: flex;
    }

    .login-form-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        max-width: 100%;
    }

    .login-form-panel {
        padding: 1.5rem 1.25rem;
    }
}
