* { box-sizing: border-box; }
html,body { height: 100%; margin: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: url("../images/login.jpg") center center fixed;
  background-size: cover;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}


.center-column {
  width: 540px;                     
  text-align: center;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 92px;                      
  height: auto;
  display: block;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 34px;
  margin: 0;
  color: #000;
  letter-spacing: 0.3px;
}

.auth-area { margin-bottom: 18px; }

.auth-card {
  width: 450px;                     
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #9bd7ff;        
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  padding: 30px 30px 45px;          
  position: relative;
}

.auth-head {
  width: calc(100% + 60px);
  margin: -52px -30px 12px -30px;          
  background: #55bdf6;              
  border-radius: 20px 20px 0 0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.03) inset;
  padding: 30px 10px;
  text-align: center;
}

.auth-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: "Inter", sans-serif;
}

.login-form { display: block; }

.field-label {
  display: block;
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-transform: none;
  text-align: left;
  width: 100%;
  padding-left: 8px;
  letter-spacing: 0.2px;
}

.field-input {
  width: calc(100% - 16px);
  padding: 6px 8px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #cfeafc;       
  background: #ffffff;
  outline: none;
  font-size: 15px;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.field-input:hover {
  border-color: #79c5f8;
  box-shadow: 0 0 8px rgba(121, 197, 248, 0.3);
  transform: scale(1.02);
}

.field-input:focus {
  border-color: #55bdf6;
  box-shadow: 0 0 12px rgba(85, 189, 246, 0.4);
  transform: scale(1.02);
}


.social-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 14px 0 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(9,30,66,0.03);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(9,30,66,0.15);
  border-color: rgba(0,0,0,0.15);
}

.social-icon .fa-google { color: #db4437; }
.social-icon .fa-apple { color: #000; }
.social-icon .fa-facebook-f { color: #1877f2; }

.btn-continue {
  width: 86%;
  margin: 8px auto 10px;
  display: block;
  padding: 8px 10px;
  border-radius: 20px;
  border: none;
  font-weight: 700;
  text-transform: lowercase;
  background: #79c5f8;
  color: #06314a;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06) inset;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-continue:hover {
  background: #55bdf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(85, 189, 246, 0.4), 0 2px 0 rgba(0,0,0,0.06) inset;
}

.card-separator {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 10px auto;
  width: 86%;
}

.help-link {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #444;
  text-decoration: none;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
}

.help-link:hover {
  color: #55bdf6;
  transform: scale(1.05);
  letter-spacing: 0.8px;
}

.signup-area {
  margin-top: 14px;
  margin-bottom: 18px;
}

.line-with-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5a5a5a;
  font-size: 12px;
  margin-bottom: 12px;
}

.line-with-text span {
  position: relative;
  padding: 0 12px;
  font-size: 12px;
  text-transform: none;
  color: #333;
}
.line-with-text::before,
.line-with-text::after {
  content: "";
  height: 1px;
  background: rgba(0,0,0,0.12);
  flex: 1;
}

.btn-create {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 18px;
  text-decoration: none;
  background: #79c5f8;
  color: #06314a;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
}

.btn-create:hover {
  background: #55bdf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(85, 189, 246, 0.4);
}

.site-footer {
  margin-top: 40px;
  font-size: 12px;
  color: #444;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #000;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 4px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 11px;
  text-transform: lowercase;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: #55bdf6;
  transform: translateY(-1px);
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: #55bdf6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover { text-decoration: underline; }

.site-footer p { 
  margin: 15px 0 0; 
  font-size: 11px; 
  color: #666; 
  letter-spacing: 0.4px;
  text-align: center;
  width: 100%;
}


/* Ajouter ces media queries à la fin du fichier */

@media (max-width: 768px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .center-column {
        width: 100%;
        max-width: 500px;
    }
    
    .auth-card {
        width: 100%;
        max-width: 400px;
        padding: 25px 20px 35px;
    }
    
    .auth-head {
        width: calc(100% + 40px);
        margin: -42px -20px 12px -20px;
        padding: 25px 10px;
    }
    
    .brand-title {
        font-size: 28px;
    }
    
    .brand-logo {
        width: 80px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .center-column {
        margin-top: 1rem;
    }
    
    .auth-card {
        padding: 20px 15px 30px;
    }
    
    .auth-head {
        width: calc(100% + 30px);
        margin: -38px -15px 10px -15px;
        padding: 20px 10px;
    }
    
    .auth-head h2 {
        font-size: 16px;
    }
    
    .brand {
        gap: 8px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .brand-logo {
        width: 70px;
    }
    
    .field-label {
        font-size: 13px;
    }
    
    .field-input {
        font-size: 14px;
    }
    
    .btn-continue,
    .btn-create {
        font-size: 13px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-row {
        gap: 12px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}