| 1 |
.ai-auth-container { |
| 2 |
max-width: 400px; |
| 3 |
margin: 50px auto; |
| 4 |
padding: 40px; |
| 5 |
background: #ffffff; |
| 6 |
border-radius: 12px; |
| 7 |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); |
| 8 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 9 |
} |
| 10 |
|
| 11 |
.ai-auth-header { |
| 12 |
text-align: center; |
| 13 |
margin-bottom: 30px; |
| 14 |
} |
| 15 |
|
| 16 |
.ai-auth-header h2 { |
| 17 |
color: #1a1a1a; |
| 18 |
font-size: 28px; |
| 19 |
font-weight: 600; |
| 20 |
margin: 0 0 8px 0; |
| 21 |
} |
| 22 |
|
| 23 |
.ai-auth-header p { |
| 24 |
color: #666; |
| 25 |
font-size: 16px; |
| 26 |
margin: 0; |
| 27 |
} |
| 28 |
|
| 29 |
.ai-auth-form { |
| 30 |
display: flex; |
| 31 |
flex-direction: column; |
| 32 |
gap: 20px; |
| 33 |
} |
| 34 |
|
| 35 |
.ai-form-group { |
| 36 |
display: flex; |
| 37 |
flex-direction: column; |
| 38 |
gap: 8px; |
| 39 |
} |
| 40 |
|
| 41 |
.ai-form-group label { |
| 42 |
font-weight: 500; |
| 43 |
color: #232222; |
| 44 |
font-size: 14px; |
| 45 |
} |
| 46 |
|
| 47 |
.ai-form-group input { |
| 48 |
padding: 12px 16px; |
| 49 |
border: 2px solid #e1e5e9 !important; |
| 50 |
border-radius: 8px; |
| 51 |
font-size: 16px; |
| 52 |
transition: all 0.3s ease; |
| 53 |
background: #ffffff; |
| 54 |
outline: none; |
| 55 |
color: #1a1a1a !important; |
| 56 |
} |
| 57 |
|
| 58 |
/* Styliser les placeholders */ |
| 59 |
.ai-form-group input::placeholder { |
| 60 |
color: #666 !important; |
| 61 |
opacity: 1 !important; |
| 62 |
} |
| 63 |
|
| 64 |
.ai-form-group input::-webkit-input-placeholder { |
| 65 |
color: #666 !important; |
| 66 |
opacity: 1 !important; |
| 67 |
} |
| 68 |
|
| 69 |
.ai-form-group input::-moz-placeholder { |
| 70 |
color: #666 !important; |
| 71 |
opacity: 1 !important; |
| 72 |
} |
| 73 |
|
| 74 |
.ai-form-group input:-ms-input-placeholder { |
| 75 |
color: #666 !important; |
| 76 |
opacity: 1 !important; |
| 77 |
} |
| 78 |
|
| 79 |
.ai-form-group input:-moz-placeholder { |
| 80 |
color: #666 !important; |
| 81 |
opacity: 1 !important; |
| 82 |
} |
| 83 |
|
| 84 |
.ai-form-group input:focus { |
| 85 |
outline: none !important; |
| 86 |
border-color: #007cba !important; |
| 87 |
background: #ffffff; |
| 88 |
box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1); |
| 89 |
color: #1a1a1a; |
| 90 |
} |
| 91 |
|
| 92 |
/* Empêcher les styles de validation HTML5 */ |
| 93 |
.ai-form-group input:invalid { |
| 94 |
border-color: #e1e5e9 !important; |
| 95 |
box-shadow: none !important; |
| 96 |
color: #1a1a1a !important; |
| 97 |
} |
| 98 |
|
| 99 |
.ai-form-group input:valid { |
| 100 |
border-color: #e1e5e9 !important; |
| 101 |
color: #1a1a1a !important; |
| 102 |
} |
| 103 |
|
| 104 |
/* Empêcher les styles de validation WordPress */ |
| 105 |
.ai-form-group input.wp-error { |
| 106 |
border-color: #e1e5e9 !important; |
| 107 |
} |
| 108 |
|
| 109 |
/* Empêcher les styles de validation du navigateur */ |
| 110 |
.ai-form-group input::-webkit-validation-bubble-message { |
| 111 |
display: none; |
| 112 |
} |
| 113 |
|
| 114 |
.ai-form-group input::-webkit-validation-bubble-arrow { |
| 115 |
display: none; |
| 116 |
} |
| 117 |
|
| 118 |
/* Styles supplémentaires pour éviter les bordures rouges */ |
| 119 |
.ai-form-group input[type="email"], |
| 120 |
.ai-form-group input[type="password"] { |
| 121 |
border-color: #e1e5e9 !important; |
| 122 |
box-shadow: none !important; |
| 123 |
color: #1a1a1a !important; |
| 124 |
} |
| 125 |
|
| 126 |
.ai-form-group input[type="email"]:focus, |
| 127 |
.ai-form-group input[type="password"]:focus { |
| 128 |
border-color: #007cba !important; |
| 129 |
box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important; |
| 130 |
color: #1a1a1a !important; |
| 131 |
} |
| 132 |
|
| 133 |
/* Désactiver complètement la validation visuelle HTML5 */ |
| 134 |
.ai-form-group input:required { |
| 135 |
border-color: #e1e5e9 !important; |
| 136 |
color: #1a1a1a !important; |
| 137 |
} |
| 138 |
|
| 139 |
.ai-form-group input:required:invalid { |
| 140 |
border-color: #e1e5e9 !important; |
| 141 |
box-shadow: none !important; |
| 142 |
color: #767676 !important; |
| 143 |
} |
| 144 |
|
| 145 |
.ai-form-group input:required:valid { |
| 146 |
border-color: #e1e5e9 !important; |
| 147 |
color: #1a1a1a !important; |
| 148 |
} |
| 149 |
|
| 150 |
/* Styles spécifiques pour les champs password */ |
| 151 |
.ai-form-group input[type="password"] { |
| 152 |
color: #1a1a1a !important; |
| 153 |
-webkit-text-security: none; |
| 154 |
} |
| 155 |
|
| 156 |
/* S'assurer que le texte saisi est visible */ |
| 157 |
.ai-form-group input[value] { |
| 158 |
color: #1a1a1a !important; |
| 159 |
} |
| 160 |
|
| 161 |
/* Forcer la couleur du texte pour tous les navigateurs */ |
| 162 |
.ai-form-group input { |
| 163 |
-webkit-text-fill-color: #1a1a1a !important; |
| 164 |
color: #1a1a1a !important; |
| 165 |
} |
| 166 |
|
| 167 |
.ai-submit-btn { |
| 168 |
background: linear-gradient(135deg, #007cba 0%, #005a87 100%); |
| 169 |
color: white; |
| 170 |
border: none; |
| 171 |
padding: 14px 24px; |
| 172 |
border-radius: 8px; |
| 173 |
font-size: 16px; |
| 174 |
font-weight: 600; |
| 175 |
cursor: pointer; |
| 176 |
transition: all 0.3s ease; |
| 177 |
margin-top: 10px; |
| 178 |
} |
| 179 |
|
| 180 |
.ai-submit-btn:hover { |
| 181 |
transform: translateY(-2px); |
| 182 |
box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3); |
| 183 |
} |
| 184 |
|
| 185 |
.ai-submit-btn:disabled { |
| 186 |
background: #ccc; |
| 187 |
cursor: not-allowed; |
| 188 |
transform: none; |
| 189 |
box-shadow: none; |
| 190 |
} |
| 191 |
|
| 192 |
.ai-toggle-form { |
| 193 |
text-align: center; |
| 194 |
margin-top: 20px; |
| 195 |
padding-top: 20px; |
| 196 |
border-top: 1px solid #e1e5e9; |
| 197 |
} |
| 198 |
|
| 199 |
.ai-toggle-form button { |
| 200 |
background: none; |
| 201 |
border: none; |
| 202 |
color: #007cba; |
| 203 |
font-size: 14px; |
| 204 |
cursor: pointer; |
| 205 |
text-decoration: underline; |
| 206 |
font-weight: 500; |
| 207 |
} |
| 208 |
|
| 209 |
.ai-toggle-form button:hover { |
| 210 |
color: #005a87; |
| 211 |
} |
| 212 |
|
| 213 |
.ai-forgot-password { |
| 214 |
text-align: right; |
| 215 |
margin-bottom: 10px; |
| 216 |
} |
| 217 |
|
| 218 |
.ai-forgot-password .ai-link { |
| 219 |
color: #007cba; |
| 220 |
text-decoration: none; |
| 221 |
font-size: 14px; |
| 222 |
font-weight: 500; |
| 223 |
transition: color 0.3s ease; |
| 224 |
} |
| 225 |
|
| 226 |
.ai-forgot-password .ai-link:hover { |
| 227 |
color: #005a87; |
| 228 |
text-decoration: underline; |
| 229 |
} |
| 230 |
|
| 231 |
.ai-message { |
| 232 |
padding: 16px; |
| 233 |
border-radius: 8px; |
| 234 |
margin: 20px 0; |
| 235 |
font-size: 14px; |
| 236 |
text-align: center; |
| 237 |
} |
| 238 |
|
| 239 |
.ai-message.success { |
| 240 |
background: #d4edda; |
| 241 |
color: #155724; |
| 242 |
border: 1px solid #c3e6cb; |
| 243 |
} |
| 244 |
|
| 245 |
.ai-message.error { |
| 246 |
background: #f8d7da; |
| 247 |
color: #721c24; |
| 248 |
border: 1px solid #f5c6cb; |
| 249 |
} |
| 250 |
|
| 251 |
.ai-message.info { |
| 252 |
background: #d1ecf1; |
| 253 |
color: #0c5460; |
| 254 |
border: 1px solid #bee5eb; |
| 255 |
} |
| 256 |
|
| 257 |
.ai-loading { |
| 258 |
display: inline-block; |
| 259 |
width: 20px; |
| 260 |
height: 20px; |
| 261 |
border: 3px solid rgba(255, 255, 255, 0.3); |
| 262 |
border-radius: 50%; |
| 263 |
border-top-color: #fff; |
| 264 |
animation: spin 1s ease-in-out infinite; |
| 265 |
margin-right: 10px; |
| 266 |
} |
| 267 |
|
| 268 |
@keyframes spin { |
| 269 |
to { |
| 270 |
transform: rotate(360deg); |
| 271 |
} |
| 272 |
} |
| 273 |
|
| 274 |
.ai-form-hidden { |
| 275 |
display: none; |
| 276 |
} |
| 277 |
|
| 278 |
/* Responsive Design */ |
| 279 |
@media (max-width: 480px) { |
| 280 |
.ai-auth-container { |
| 281 |
margin: 20px; |
| 282 |
padding: 30px 20px; |
| 283 |
} |
| 284 |
|
| 285 |
.ai-auth-header h2 { |
| 286 |
font-size: 24px; |
| 287 |
} |
| 288 |
|
| 289 |
.ai-form-group input { |
| 290 |
padding: 10px 14px; |
| 291 |
font-size: 16px; |
| 292 |
/* Prevents zoom on iOS */ |
| 293 |
} |
| 294 |
} |
| 295 |
|
| 296 |
/* Animation pour les transitions */ |
| 297 |
.ai-fade-in { |
| 298 |
animation: fadeIn 0.5s ease-in; |
| 299 |
} |
| 300 |
|
| 301 |
@keyframes fadeIn { |
| 302 |
from { |
| 303 |
opacity: 0; |
| 304 |
transform: translateY(20px); |
| 305 |
} |
| 306 |
|
| 307 |
to { |
| 308 |
opacity: 1; |
| 309 |
transform: translateY(0); |
| 310 |
} |
| 311 |
} |
| 312 |
|
| 313 |
/* Dashboard Styles */ |
| 314 |
.ai-dashboard-content { |
| 315 |
display: flex; |
| 316 |
flex-direction: column; |
| 317 |
gap: 24px; |
| 318 |
margin-top: 20px; |
| 319 |
} |
| 320 |
|
| 321 |
.ai-dashboard-card { |
| 322 |
background: #ffffff; |
| 323 |
border: 1px solid #e1e5e9; |
| 324 |
border-radius: 12px; |
| 325 |
padding: 24px; |
| 326 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); |
| 327 |
transition: all 0.3s ease; |
| 328 |
} |
| 329 |
|
| 330 |
.ai-dashboard-card:hover { |
| 331 |
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); |
| 332 |
transform: translateY(-2px); |
| 333 |
} |
| 334 |
|
| 335 |
.ai-card-header { |
| 336 |
display: flex; |
| 337 |
align-items: center; |
| 338 |
gap: 16px; |
| 339 |
margin-bottom: 16px; |
| 340 |
} |
| 341 |
|
| 342 |
.ai-card-icon { |
| 343 |
width: 48px; |
| 344 |
height: 48px; |
| 345 |
background: linear-gradient(135deg, #007cba 0%, #005a87 100%); |
| 346 |
border-radius: 12px; |
| 347 |
display: flex; |
| 348 |
align-items: center; |
| 349 |
justify-content: center; |
| 350 |
color: white; |
| 351 |
} |
| 352 |
|
| 353 |
.ai-card-title h3 { |
| 354 |
margin: 0 0 4px 0; |
| 355 |
font-size: 18px; |
| 356 |
font-weight: 600; |
| 357 |
color: #1a1a1a; |
| 358 |
} |
| 359 |
|
| 360 |
.ai-plan-badge { |
| 361 |
display: inline-flex; |
| 362 |
align-items: center; |
| 363 |
padding: 6px 12px; |
| 364 |
background: #e8f5e8; |
| 365 |
color: #2d5a2d; |
| 366 |
border-radius: 20px; |
| 367 |
font-size: 14px; |
| 368 |
font-weight: 500; |
| 369 |
text-transform: capitalize; |
| 370 |
} |
| 371 |
|
| 372 |
.ai-plan-badge.premium { |
| 373 |
background: #fff3cd; |
| 374 |
color: #856404; |
| 375 |
} |
| 376 |
|
| 377 |
.ai-plan-badge.pro { |
| 378 |
background: #d1ecf1; |
| 379 |
color: #0c5460; |
| 380 |
} |
| 381 |
|
| 382 |
.ai-credits-display { |
| 383 |
font-size: 24px; |
| 384 |
font-weight: 700; |
| 385 |
color: #007cba; |
| 386 |
display: flex; |
| 387 |
align-items: center; |
| 388 |
gap: 8px; |
| 389 |
} |
| 390 |
|
| 391 |
.ai-credits-breakdown { |
| 392 |
display: flex; |
| 393 |
flex-direction: column; |
| 394 |
gap: 12px; |
| 395 |
margin-bottom: 20px; |
| 396 |
} |
| 397 |
|
| 398 |
.ai-credit-item { |
| 399 |
display: flex; |
| 400 |
justify-content: space-between; |
| 401 |
align-items: center; |
| 402 |
padding: 12px 16px; |
| 403 |
background: #f8f9fa; |
| 404 |
border-radius: 8px; |
| 405 |
border-left: 4px solid #007cba; |
| 406 |
} |
| 407 |
|
| 408 |
.ai-credit-label { |
| 409 |
font-size: 14px; |
| 410 |
color: #666; |
| 411 |
font-weight: 500; |
| 412 |
} |
| 413 |
|
| 414 |
.ai-credit-value { |
| 415 |
font-size: 16px; |
| 416 |
font-weight: 600; |
| 417 |
color: #1a1a1a; |
| 418 |
} |
| 419 |
|
| 420 |
.ai-card-content p { |
| 421 |
color: #666; |
| 422 |
font-size: 14px; |
| 423 |
line-height: 1.5; |
| 424 |
margin-bottom: 20px; |
| 425 |
} |
| 426 |
|
| 427 |
.ai-primary-btn { |
| 428 |
background: linear-gradient(135deg, #007cba 0%, #005a87 100%); |
| 429 |
color: white; |
| 430 |
border: none; |
| 431 |
padding: 12px 20px; |
| 432 |
border-radius: 8px; |
| 433 |
font-size: 14px; |
| 434 |
font-weight: 600; |
| 435 |
cursor: pointer; |
| 436 |
transition: all 0.3s ease; |
| 437 |
display: flex; |
| 438 |
align-items: center; |
| 439 |
gap: 8px; |
| 440 |
width: 100%; |
| 441 |
justify-content: center; |
| 442 |
} |
| 443 |
|
| 444 |
.ai-primary-btn:hover { |
| 445 |
transform: translateY(-2px); |
| 446 |
box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3); |
| 447 |
} |
| 448 |
|
| 449 |
.ai-secondary-btn { |
| 450 |
background: transparent; |
| 451 |
color: #007cba; |
| 452 |
border: 2px solid #007cba; |
| 453 |
padding: 12px 20px; |
| 454 |
border-radius: 8px; |
| 455 |
font-size: 14px; |
| 456 |
font-weight: 600; |
| 457 |
cursor: pointer; |
| 458 |
transition: all 0.3s ease; |
| 459 |
display: flex; |
| 460 |
align-items: center; |
| 461 |
gap: 8px; |
| 462 |
width: 100%; |
| 463 |
justify-content: center; |
| 464 |
} |
| 465 |
|
| 466 |
.ai-secondary-btn:hover { |
| 467 |
background: #007cba; |
| 468 |
color: white; |
| 469 |
transform: translateY(-2px); |
| 470 |
box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3); |
| 471 |
} |
| 472 |
|
| 473 |
.ai-dashboard-actions { |
| 474 |
margin-top: 32px; |
| 475 |
padding-top: 24px; |
| 476 |
border-top: 1px solid #e1e5e9; |
| 477 |
} |
| 478 |
|
| 479 |
.ai-signout-btn { |
| 480 |
background: #f8f9fa; |
| 481 |
color: #666; |
| 482 |
border: 1px solid #e1e5e9; |
| 483 |
display: flex; |
| 484 |
align-items: center; |
| 485 |
gap: 8px; |
| 486 |
justify-content: center; |
| 487 |
} |
| 488 |
|
| 489 |
.ai-signout-btn:hover { |
| 490 |
background: #e9ecef; |
| 491 |
color: #495057; |
| 492 |
transform: translateY(-2px); |
| 493 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
| 494 |
} |
| 495 |
|
| 496 |
/* Responsive Design pour le dashboard */ |
| 497 |
@media (max-width: 480px) { |
| 498 |
.ai-dashboard-card { |
| 499 |
padding: 20px; |
| 500 |
} |
| 501 |
|
| 502 |
.ai-card-header { |
| 503 |
flex-direction: column; |
| 504 |
align-items: flex-start; |
| 505 |
gap: 12px; |
| 506 |
} |
| 507 |
|
| 508 |
.ai-credits-display { |
| 509 |
font-size: 20px; |
| 510 |
} |
| 511 |
|
| 512 |
.ai-credit-item { |
| 513 |
flex-direction: column; |
| 514 |
align-items: flex-start; |
| 515 |
gap: 4px; |
| 516 |
} |
| 517 |
} |
| 518 |
|
| 519 |
/* Checkbox personnalisée pour les conditions d'utilisation */ |
| 520 |
.ai-checkbox-group { |
| 521 |
margin-top: 10px; |
| 522 |
} |
| 523 |
|
| 524 |
.ai-checkbox-label { |
| 525 |
display: flex !important; |
| 526 |
align-items: flex-start !important; |
| 527 |
gap: 12px !important; |
| 528 |
cursor: pointer !important; |
| 529 |
font-size: 14px !important; |
| 530 |
line-height: 1.5 !important; |
| 531 |
color: #333 !important; |
| 532 |
position: relative !important; |
| 533 |
margin: 0 !important; |
| 534 |
padding: 0 !important; |
| 535 |
} |
| 536 |
|
| 537 |
.ai-checkbox-label input[type="checkbox"] { |
| 538 |
position: absolute !important; |
| 539 |
opacity: 0 !important; |
| 540 |
cursor: pointer !important; |
| 541 |
height: 0 !important; |
| 542 |
width: 0 !important; |
| 543 |
margin: 0 !important; |
| 544 |
padding: 0 !important; |
| 545 |
} |
| 546 |
|
| 547 |
.ai-checkbox-custom { |
| 548 |
position: relative !important; |
| 549 |
height: 20px !important; |
| 550 |
width: 20px !important; |
| 551 |
background-color: #fafbfc !important; |
| 552 |
border: 2px solid #e1e5e9 !important; |
| 553 |
border-radius: 4px !important; |
| 554 |
flex-shrink: 0 !important; |
| 555 |
margin-top: 2px !important; |
| 556 |
transition: all 0.3s ease !important; |
| 557 |
display: block !important; |
| 558 |
} |
| 559 |
|
| 560 |
.ai-checkbox-label:hover .ai-checkbox-custom { |
| 561 |
border-color: #007cba !important; |
| 562 |
background-color: #f0f8ff !important; |
| 563 |
} |
| 564 |
|
| 565 |
.ai-checkbox-label input[type="checkbox"]:checked~.ai-checkbox-custom { |
| 566 |
background-color: #007cba !important; |
| 567 |
border-color: #007cba !important; |
| 568 |
} |
| 569 |
|
| 570 |
.ai-checkbox-custom:after { |
| 571 |
content: "" !important; |
| 572 |
position: absolute !important; |
| 573 |
display: none !important; |
| 574 |
left: 6px !important; |
| 575 |
top: 2px !important; |
| 576 |
width: 6px !important; |
| 577 |
height: 10px !important; |
| 578 |
border: solid white !important; |
| 579 |
border-width: 0 2px 2px 0 !important; |
| 580 |
transform: rotate(45deg) !important; |
| 581 |
} |
| 582 |
|
| 583 |
.ai-checkbox-label input[type="checkbox"]:checked~.ai-checkbox-custom:after { |
| 584 |
display: block !important; |
| 585 |
} |
| 586 |
|
| 587 |
.ai-checkbox-text { |
| 588 |
flex: 1 !important; |
| 589 |
font-size: 14px !important; |
| 590 |
line-height: 1.5 !important; |
| 591 |
color: #333 !important; |
| 592 |
display: inline !important; |
| 593 |
} |
| 594 |
|
| 595 |
.ai-link { |
| 596 |
color: #007cba !important; |
| 597 |
text-decoration: none !important; |
| 598 |
font-weight: 500 !important; |
| 599 |
transition: color 0.3s ease !important; |
| 600 |
} |
| 601 |
|
| 602 |
.ai-link:hover { |
| 603 |
color: #005a87 !important; |
| 604 |
text-decoration: underline !important; |
| 605 |
} |
| 606 |
|
| 607 |
/* État d'erreur pour la checkbox */ |
| 608 |
.ai-checkbox-label.error .ai-checkbox-custom { |
| 609 |
border-color: #dc3545 !important; |
| 610 |
background-color: #fff5f5 !important; |
| 611 |
} |
| 612 |
|
| 613 |
.ai-checkbox-label.error .ai-checkbox-text { |
| 614 |
color: #dc3545 !important; |
| 615 |
} |
| 616 |
|
| 617 |
/* Responsive pour la checkbox */ |
| 618 |
@media (max-width: 480px) { |
| 619 |
.ai-checkbox-label { |
| 620 |
font-size: 13px; |
| 621 |
gap: 10px; |
| 622 |
} |
| 623 |
|
| 624 |
.ai-checkbox-custom { |
| 625 |
height: 18px; |
| 626 |
width: 18px; |
| 627 |
margin-top: 1px; |
| 628 |
} |
| 629 |
|
| 630 |
.ai-checkbox-custom:after { |
| 631 |
left: 5px; |
| 632 |
top: 1px; |
| 633 |
width: 5px; |
| 634 |
height: 9px; |
| 635 |
} |
| 636 |
} |