/* vendor-login.css */
.assime-vendor-login {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

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

.login-header i {
    font-size: 3.7rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.canada-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e74c3c;
    border-radius: 25px;
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: 500;
}

.vendor-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 2.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.7rem;
}

.toggle-password:hover {
    color: #3498db;
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    margin: 0;
}

.remember-me label {
    margin: 0;
    font-size: 1.3rem;
    color: #5d6d7e;
}

.forgot-password-link {
    color: #3498db;
    text-decoration: none;
    font-size: 1.3rem;
}

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

.form-actions {
    margin-top: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.login-links p {
    color: #7f8c8d;
    margin: 0;
}

.register-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

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

/* Modal mot de passe oublié */
.forgot-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 3.25rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
}

.close-modal:hover {
    color: #e74c3c;
}

/* Messages */
#loginMessages,
#forgotMessages {
    margin-top: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1.9rem;
}

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

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

/* États déjà connecté et non vendeur */
.assime-vendor-already-logged,
.assime-not-vendor {
    max-width: 500px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.already-logged-header i,
.not-vendor-header i {
    font-size: 4.7rem;
    margin-bottom: 1.5rem;
}

.assime-vendor-already-logged .already-logged-header i {
    color: #27ae60;
}

.assime-not-vendor .not-vendor-header i {
    color: #f39c12;
}

.already-logged-header h2,
.not-vendor-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.already-logged-header p,
.not-vendor-header p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.already-logged-actions,
.not-vendor-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-secondary:hover {
    background: #7f8c8d;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .assime-vendor-login {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .already-logged-actions,
    .not-vendor-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* reCAPTCHA Styles */
.recaptcha-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.recaptcha-loading {
    text-align: center;
    padding: 1rem;
    color: #7f8c8d;
    font-size: 2.9rem;
}

.recaptcha-loading i {
    margin-right: 0.5rem;
}

#g-recaptcha,
#g-recaptcha-forgot {
    display: flex;
    justify-content: center;
}

/* Styles responsifs pour reCAPTCHA */
@media (max-width: 400px) {
    .recaptcha-container {
        padding: 0.5rem;
    }
    
    #g-recaptcha,
    #g-recaptcha-forgot {
        transform: scale(0.9);
        transform-origin: center;
    }
}
