* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden; }

/* Animated background effect */
body::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  right: -100px;
  animation: float 15s infinite ease-in-out; }

body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float 20s infinite ease-in-out reverse; }

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1); }
  50% {
    transform: translate(30px, 30px) scale(1.1); } }
.container {
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px); }
  to {
    opacity: 1;
    transform: translateY(0); } }
.header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden; }

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3; }

.header-content {
  position: relative;
  z-index: 1; }

.header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s infinite; }

@keyframes bounce {
  0%, 100% {
    transform: translateY(0); }
  50% {
    transform: translateY(-10px); } }
.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem; }

.header p {
  opacity: 0.95;
  font-size: 1rem; }

.form-container {
  padding: 2.5rem 2rem; }

.form-container h2 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center; }

/* Social Login Buttons */
.social-login {
  margin-bottom: 2rem; }

.social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem; }

.btn-social {
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--dark);
  position: relative;
  overflow: hidden; }

.btn-social span {
  font-size: 0.9rem;
  font-weight: 600; }

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.btn-social i {
  font-size: 1.5rem; }

.btn-google {
  color: #DB4437; }

.btn-google:hover {
  background: #DB4437;
  color: white;
  border-color: #DB4437; }

.btn-facebook {
  color: #1877F2; }

.btn-facebook:hover {
  background: #1877F2;
  color: white;
  border-color: #1877F2; }

.btn-apple {
  color: #000000; }

.btn-apple:hover {
  background: #000000;
  color: white;
  border-color: #000000; }

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem; }

.form-group label i {
  margin-right: 0.5rem;
  color: var(--primary); }

.input-wrapper {
  position: relative; }

.input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: white; }

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px); }

.input-wrapper input::placeholder {
  color: #cbd5e1; }

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s ease; }

.input-icon:hover {
  color: var(--primary); }

.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4); }

.btn-primary:active {
  transform: translateY(0); }

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.8; }

.btn-primary.loading i {
  animation: spin 0.6s linear infinite; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--gray);
  font-size: 0.875rem; }

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0; }

.divider span {
  padding: 0 1rem; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem; }

.label-row label {
  margin-bottom: 0; }

.forgot-link {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap; }

.forgot-link:hover {
  color: var(--primary); }

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray);
  font-size: 0.95rem; }

.login-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease; }

.login-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem;
  background: var(--light);
  border-top: 1px solid #e2e8f0; }

.feature-item {
  text-align: center; }

.feature-item i {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block; }

.feature-item span {
  display: block;
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 600; }

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1rem; }

  .container {
    border-radius: 20px; }

  .header {
    padding: 2rem 1.5rem; }

  .header h1 {
    font-size: 2rem; }

  .header i {
    font-size: 2.5rem; }

  .form-container {
    padding: 2rem 1.5rem; }

  .social-buttons {
    grid-template-columns: 1fr; }

  .btn-apple {
    grid-column: 1; }

  .features {
    grid-template-columns: 1fr;
    gap: 1.25rem; } }
/* Animation pour les erreurs */
.shake {
  animation: shake 0.5s; }

@keyframes shake {
  0%, 100% {
    transform: translateX(0); }
  25% {
    transform: translateX(-10px); }
  75% {
    transform: translateX(10px); } }
/* ==================== ALERTES INLINE ==================== */
#login-alert {
  margin-bottom: 1rem; }

.inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: alertSlideIn 0.25s ease; }
  .inline-alert i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1rem; }
  .inline-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c; }
    .inline-alert--error i {
      color: #ef4444; }
  .inline-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534; }
    .inline-alert--success i {
      color: #22c55e; }
  .inline-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af; }
    .inline-alert--info i {
      color: #3b82f6; }
  .inline-alert--warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e; }
    .inline-alert--warning i {
      color: #f59e0b; }

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px); }
  to {
    opacity: 1;
    transform: translateY(0); } }
.field-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 0.3rem;
  min-height: 1rem; }

.input-wrapper.has-error input,
.input-wrapper.has-error select {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important; }



/* ─── Ripple ─────────────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 120px; height: 120px;
  margin-left: -60px; margin-top: -60px;
  transform: scale(0);
  animation: rippleAnim 0.65s linear forwards;
  pointer-events: none; }

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; } }

/* ─── Staggered entrance ─────────────────────────────────────── */
.social-login { animation: fadeSlideUp 0.45s 0.05s both; }
.divider      { animation: fadeSlideUp 0.45s 0.12s both; }
.form-group:nth-child(1) { animation: fadeSlideUp 0.45s 0.15s both; }
.form-group:nth-child(2) { animation: fadeSlideUp 0.45s 0.22s both; }
.btn-primary  { animation: fadeSlideUp 0.45s 0.28s both; }
.login-link   { animation: fadeSlideUp 0.45s 0.33s both; }
.features     { animation: fadeSlideUp 0.45s 0.38s both; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); } }

/*# sourceMappingURL=login.css.map */
