/* RESET */

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

:root{
    --primary-color: #ffd000;
    --primary-hover-color: #e6c200;
    --secondary-color: #1a1a1a;
    --background-color: #0f0f0f;
    --text-color: white;
    --text-color-light: #ccc;
    --text-color-dark: #777;
    --font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f0f0f;
    color: white; 
    line-height: 1.6;
}

a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

/* HEADER */

header {
    background-color: #1a1a1a;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* FORMULAIRE INSCRIPTION / CONNEXION */

main {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    width: 50%;
    height: 100%;
}
    
main h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 28px;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #ddd;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: white;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

input[type="text"]:focus,

input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

input[type="password"]::-ms-reveal { display: none; }

button {
    width: 100%;
    padding: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: #444;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-hover-color);
}

nav.form-nav {
    text-align: center;
    margin-top: 15px;
}

nav.form-nav a {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
    margin: 0 10px;
    transition: color 0.3s;
    cursor: pointer;
}

nav.form-nav a:hover {
    color: #ff6600;
}



/* ESPACE POUR LE FOOTER */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 14px;
  margin-top: auto;
}

.password-container {
      position: relative;
      display: inline-block;
      align-items: center;
    }

    .password-container input {
      padding-right: 30px;
    }

    .toggle-eye {
      position: absolute;
      right: 8px;
      cursor: pointer;
      top: 5px;
    }

