/* Assimé Auth System */
.assime-auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.1);
    overflow: hidden;
    font-size: 21px;
}

.auth-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 0;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #92400e;
    padding: 1.5rem;
    font-size: 1.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 3px solid #92400e;
}

.auth-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.auth-messages {
    padding: 1rem;
    display: none;
}

.auth-messages .message-success {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    color: #15803d;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.auth-messages .message-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.auth-form {
    padding: 2rem;
    display: none;
}

.auth-form.active {
    display: block;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: #15803d;
    margin: 0 0 0.5rem 0;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1.7rem;
}

.customer-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.customer-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 1.7rem;
}

.customer-form input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

.customer-form input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-icon {
    position: absolute;
    left: 0.75rem;
    top: 2.5rem;
    color: #22c55e;
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-strength {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.3rem;
}

.password-weak { color: #ef4444; }
.password-medium { color: #f59e0b; }
.password-strong { color: #22c55e; }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 1.3rem;
}

.checkbox-group a {
    color: #22c55e;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

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

.remember-me {
    margin-bottom: 0;
}

.forgot-password a {
    color: #22c55e;
    text-decoration: none;
    font-size: 1.3rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.form-divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 1rem;
}

.auth-switch {
    padding: 1.5rem 2rem;
    background: #f8fffa;
    border-top: 2px solid #d1fae5;
    text-align: center;
    font-size: 1rem;
}

.switch-link {
    color: #22c55e;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.switch-link:hover {
    text-decoration: underline;
}

/* User Dashboard */
.assime-user-dashboard {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 16px;
}

.dashboard-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-welcome i {
    font-size: 3rem;
    opacity: 0.9;
}

.user-welcome h2 {
    margin: 0;
    font-size: 2.3rem;
}

.user-welcome p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 1.3rem;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.status-badge.vendor {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: white;
}

.action-card {
    background: #f8fffa;
    border: 2px solid #d1fae5;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
}

.action-card i {
    font-size: 2.7rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: #15803d;
    margin: 0 0 0.5rem 0;
    font-size: 1.7rem;
}

.action-card p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
}

.action-card .btn-primary {
    font-size: 1.8rem;
    padding: 0.75rem 1.5rem;
}

.dashboard-logout {
    padding: 1.5rem 2rem;
    background: #f8fffa;
    border-top: 2px solid #d1fae5;
    text-align: center;
    border-radius: 0 0 15px 15px;
}

.btn-logout {
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.btn-logout:hover {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .assime-auth-container {
        margin: 1rem;
        border-radius: 10px;
        font-size: 15px;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        font-size: 1.8rem;
        padding: 1.25rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.9rem;
    }
    
    .customer-form input {
        font-size: 1.8rem;
    }
    
    .user-welcome h2 {
        font-size: 1.9rem;
    }
    
    .user-welcome p {
        font-size: 1.8rem;
    }
}

/* Pour les grands écrans */
@media (min-width: 1200px) {
    .assime-auth-container {
        font-size: 18px;
    }
    
    .assime-user-dashboard {
        font-size: 21px;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Améliorations de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .auth-tab,
    .btn-primary,
    .btn-secondary,
    .action-card {
        transition: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Contraste amélioré pour l'accessibilité */
.customer-form label {
    color: #1f2937;
}

.form-header p {
    color: #4b5563;
}

.action-card p {
    color: #4b5563;
}

/* ===== STYLES CANADA ET SMS POUR AUTH CLIENT ===== */

.canada-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.phone-verification {
    border: 2px solid #d1fae5;
    border-radius: 10px;
    padding: 1.5rem;
    background: #f8fffa;
    margin-bottom: 1.5rem;
}

.phone-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #dcfce7;
    border: 2px solid #22c55e;
    border-radius: 8px;
    color: #15803d;
    font-weight: 600;
    white-space: nowrap;
}

.phone-input-container input {
    flex: 1;
    padding-left: 1rem !important;
}

.btn-sms {
    background: #22c55e;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sms:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-sms:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.phone-hint, .zip-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.8rem;
    color: #6b7280;
    font-style: italic;
}

.sms-verification-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #d1fae5;
}

.code-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-input-container input {
    flex: 1;
}

.btn-verify {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-verify:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-resend {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-resend:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.sms-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.8rem;
    color: #ef4444;
    font-weight: 500;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.9rem;
}

.verification-status.verified {
    background: #d1fae5;
    border-color: #22c55e;
    color: #15803d;
}

.client-verification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 1.7rem;
    justify-content: center;
}

.client-verification-status.verified {
    background: #d1fae5;
    border-color: #22c55e;
    color: #15803d;
}

/* Styles spécifiques pour le formulaire client */
.customer-form .phone-verification {
    margin-bottom: 1.5rem;
}

.customer-form .phone-input-container input {
    padding: 0.75rem 1rem 0.75rem 1rem !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phone-prefix {
        justify-content: center;
    }
    
    .code-input-container {
        flex-direction: column;
    }
    
    .phone-verification {
        padding: 1rem;
    }
}


/* Formulaire de réinitialisation de mot de passe */
.forgot-password-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #22c55e;
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

.forgot-password-form .form-header {
    margin-bottom: 1.5rem;
}

.forgot-password-form .form-header h3 {
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.forgot-password-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.forgot-password-form .btn-primary,
.forgot-password-form .btn-secondary {
    flex: 1;
}

.forgot-password-form .auth-message {
    margin-top: 1rem;
}

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

/* Lien mot de passe oublié */
.forgot-password a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #22c55e;
}