/* === Style Café Malin - Page Connexion (harmonisé) === */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  background: url('../img/fond.png') no-repeat center/cover;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff1e6;
  color: #3c3f42;
  min-height: 100vh;
  position: relative;
}

.navbar {
  background-color: #fff7ed;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  height: 50px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-left img {
  height: 60px;
  filter: brightness(0) saturate(100%) invert(16%) sepia(20%) saturate(747%) hue-rotate(350deg) brightness(90%) contrast(90%);
}

.nav-right {
  display: flex;
  gap: 30px;
}

.nav-right a {
  color: #3c3f42;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 8px;
}

.nav-right a:hover {
  background-color: #b2794c;
  color: white;
}

.login-container {
  max-width: 500px;
  margin: 150px auto;
  background: #fffaf5;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #3c3f42;
  font-size: 32px;
}

form label {
  font-weight: 500;
  margin-top: 20px;
  display: block;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
  width: 100%;
  padding: 14px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  transition: border 0.3s, background-color 0.3s;
  box-sizing: border-box;
}

form input:focus,
form input:valid {
  border-color: #b2794c;
  background-color: #fcefe6;
  outline: none;
}

.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 53%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
}

button[type="submit"] {
  background-color: #b2794c;
  color: white;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 25px;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #9f5f2d;
}

.forgot {
  text-align: right;
  margin-top: 10px;
}

.forgot a {
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.erreur {
  border: 1px solid #d8a39d;
  background-color: #fff2f0;
  color: #b23b3b;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.footer {
  background-color: #422a1d;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}


@media screen and (max-width: 600px) {
  .login-container {
    margin: 40px 15px;
    padding: 20px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  h2 {
    font-size: 24px;
  }

  form label,
  form input[type="text"],
  form input[type="email"],
  form input[type="password"],
  button[type="submit"] {
    font-size: 15px;
  }

  .toggle-password {
    right: 10px;
  }
}

