/* auth-v2.css */
body {
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    background: #fdfbfe; /* Very light background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

/* Header */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: transparent;
    z-index: 10;
}
.ah-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.ah-logo-icon {
    width: 24px;
    height: 24px;
    background: #6d28d9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.ah-nav {
    display: flex;
    gap: 2rem;
}
.ah-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.ah-nav a:hover {
    color: #6d28d9;
}
.ah-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.ah-lang {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ah-help {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.ah-help:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Main Content */
.auth-main {
    flex: 1;
    display: flex;
    padding: 0 3rem;
    gap: 4rem;
    align-items: center; /* Center vertically instead of stretch */
}

/* Left Section */
.auth-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 3rem;
    border-radius: 32px;
    z-index: 2;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.85) 100%);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    z-index: -1;
}

.auth-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -1px;
}
.auth-title-purple {
    color: #6d28d9;
}

.auth-desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 75%;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.af-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.af-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3e8ff;
    color: #6d28d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.af-text h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}
.af-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.auth-review {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    max-width: 400px;
}
.ar-quote {
    color: #6d28d9;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.ar-text {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.ar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ar-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.ar-rating-text {
    font-size: 0.8rem;
    color: #64748b;
}
.ar-avatars {
    display: flex;
}
.ar-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    object-fit: cover;
}
.ar-avatars img:first-child {
    margin-left: 0;
}

/* Dashboard Mockup overlay */
.auth-mockup-css {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    z-index: -1;
    opacity: 0.8;
}
.am-sidebar {
    width: 60px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.5rem;
    color: #64748b;
}
.am-sidebar i.active { color: #8b5cf6; }
.am-body {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
}
.am-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}
.am-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.am-card {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    font-size: 0.8rem;
    color: #64748b;
}
.am-card b {
    display: block;
    font-size: 1.2rem;
    color: #0f172a;
    margin-top: 0.5rem;
}
.am-chart {
    background: white;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.am-chart::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(0deg, rgba(139,92,246,0.1) 0%, transparent 100%);
}
.am-pie {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.am-pie-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#8b5cf6 0% 60%, #10b981 60% 90%, #f59e0b 90% 100%);
    position: relative;
}
.am-pie-chart::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: white;
    border-radius: 50%;
}

/* Right Section */
.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.ac-icon {
    text-align: center;
    margin-bottom: 1rem;
}
.ac-icon-inner {
    width: 44px;
    height: 44px;
    background: #f3e8ff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6d28d9;
    font-size: 1.4rem;
}

.ac-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 0.3rem;
}

.ac-sub {
    font-size: 0.95rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1.5rem;
}

.ac-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.ac-input-group {
    position: relative;
    /* margin-bottom is handled by Bootstrap classes mb-3 and mb-4 on the parent wrapper */
}

.ac-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
}

.ac-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem !important;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s;
    background: #fcfcfd;
}
.ac-input:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
    background: white;
}

.ac-input-action {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.ac-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ac-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
}
.ac-checkbox input {
    accent-color: #6d28d9;
    width: 14px;
    height: 14px;
}

.ac-forgot {
    font-size: 0.85rem;
    color: #6d28d9;
    text-decoration: none;
    font-weight: 500;
}

.ac-btn {
    width: 100%;
    background: #6d28d9;
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}
.ac-btn:hover {
    background: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
}

.ac-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}
.ac-divider::before, .ac-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.ac-divider::before { margin-right: 1rem; }
.ac-divider::after { margin-left: 1rem; }

.ac-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ac-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.ac-social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.ac-social-btn img {
    width: 20px;
    height: 20px;
}

.ac-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}
.ac-footer a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
}

/* Footer Section */
.auth-footer {
    margin-top: auto;
    padding: 1rem 3rem;
}

.af-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.af-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

/* Register Specific Styles */
.ah-login-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
}
.ah-login-btn {
    padding: 0.5rem 1rem;
    background: #f3e8ff;
    color: #6d28d9;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.ah-login-btn:hover {
    background: #e9d5ff;
}

.ac-row {
    display: flex;
    gap: 1rem;
}
.ac-row .ac-input-group {
    flex: 1;
}

.ac-pwd-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}
.ac-pwd-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}
.ac-pwd-reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.ac-pwd-req {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ac-pwd-req i {
    color: #8b5cf6;
    background: #f3e8ff;
    border-radius: 50%;
    font-size: 0.6rem;
    padding: 2px;
}

.af-secure-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}
.af-secure-icon {
    font-size: 1.5rem;
    color: #6d28d9;
}
.af-secure-desc h6 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}
.af-secure-desc p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    max-width: 300px;
}



/* Compression maximale pour tenir sur un seul écran (100vh) */
.auth-main-register {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 2rem;
}

.auth-main-register .auth-card {
    padding: 1.5rem 2rem;
    max-width: 480px;
}

.auth-main-register .ac-icon {
    margin-bottom: 0.5rem;
}
.auth-main-register .ac-icon-inner {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
}

.auth-main-register .ac-title {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.auth-main-register .ac-sub {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-main-register .mb-3, .auth-main-register .mb-4 {
    margin-bottom: 0.7rem !important;
}

.auth-main-register .ac-input {
    padding: 0.55rem 1rem 0.55rem 2.5rem !important;
    font-size: 0.9rem;
}

.auth-main-register .ac-input-icon {
    left: 1rem;
    font-size: 0.9rem;
}

.auth-main-register .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.auth-main-register .ac-pwd-info {
    padding: 0.6rem 1rem;
    margin-bottom: 0.7rem;
}

.auth-main-register .ac-pwd-title {
    margin-bottom: 0.3rem;
}

.auth-main-register .ac-pwd-reqs {
    gap: 0.2rem 0.8rem;
}

.auth-main-register .ac-pwd-req {
    font-size: 0.75rem;
}

.auth-main-register .ac-checkbox {
    font-size: 0.75rem;
}
.auth-main-register .ac-checkbox input {
    width: 12px;
    height: 12px;
}

.auth-main-register .ac-btn {
    padding: 0.65rem;
    font-size: 0.95rem;
}

.auth-main-register .ac-divider {
    margin: 0.7rem 0;
}

.auth-main-register .ac-social-btn {
    padding: 0.5rem;
    font-size: 0.85rem;
}/* Agrandissement de la partie gauche (spécifique à l'inscription) */
.auth-main-register .auth-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.auth-main-register .auth-desc {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}
.auth-main-register .auth-features {
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.auth-main-register .af-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}
.auth-main-register .af-item {
    gap: 1.25rem;
}
.auth-main-register .af-text h5 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}
.auth-main-register .af-text p {
    font-size: 1rem;
}
.auth-main-register .af-secure-icon {
    font-size: 1.8rem;
}
.auth-main-register .af-secure-desc h6 {
    font-size: 1.1rem;
}
.auth-main-register .af-secure-desc p {
    font-size: 0.95rem;
}


.af-badge i {
    color: #6d28d9;
    font-size: 1.2rem;
    background: #f3e8ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.af-badge span {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.af-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}
.af-links {
    display: flex;
    gap: 1.5rem;
}
.af-links a {
    color: #64748b;
    text-decoration: none;
}
.af-links a:hover {
    color: #6d28d9;
}

/* Responsive */
@media (max-width: 1200px) {
    .auth-main { padding: 2rem; gap: 2rem; flex-direction: column; }
    .auth-mockup-css { display: none; }
    .auth-left { padding-right: 0; align-items: center; text-align: center; }
    .af-item { justify-content: center; text-align: left; }
    .auth-desc { max-width: 100%; }
    .af-badges { flex-wrap: wrap; }
}

@media (max-width: 991px) {
    .auth-left {
        display: none !important;
    }
    .auth-main {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-header { padding: 1rem; }
    .ah-nav { display: none; }
    .auth-title { font-size: 2.5rem; }
    .af-badges { flex-direction: column; gap: 1rem; align-items: stretch; }
    .af-bottom { flex-direction: column; gap: 1rem; align-items: center; }
    .af-badge { justify-content: flex-start; }
    .auth-card { padding: 2rem; }
}
