/* Fichier: styles.css */

:root {
    --main-color: #FF9900;
    --secondary-color: #003366;
    --background-color: #F0F0F0;
    --text-color: #333;
    --border-color-dark: #d1d1d1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 3.5em 2.5em;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 1em;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: start;
}

.input-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: var(--secondary-color);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 85%;
    padding: 1em 1em 1em 3em;
    border: none; /* Enlève la bordure */
    border-radius: 8px;
    font-size: 1em;
    background-color: var(--background-color);
    box-shadow: inset 5px 5px 10px #d1d1d1, inset -5px -5px 10px #ffffff; /* Ombres subtiles */
    transition: box-shadow 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    box-shadow: inset 2px 2px 5px #bebebe, inset -2px -2px 5px #ffffff, 0 0 5px rgba(255, 153, 0, 0.5); /* Effet au focus */
}

.input-wrapper .icon-input {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2em;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.2em;
    transition: color 0.3s;
}

.input-wrapper .toggle-password:hover {
    color: var(--main-color);
}

.btn {
    width: 100%;
    padding: 0.8em;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--main-color);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
    margin-bottom: 1em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5em; /* Espace au-dessus du groupe de boutons */
    width: 100%;
    gap: 1em; /* Espace entre les boutons */
}

.btn-neumorphic {
    flex: 1; /* Les deux boutons prennent une part égale de l'espace */
    background-color: var(--background-color);
    color: var(--secondary-color);
    box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
}

.btn-neumorphic:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* NOUVELLE CLASSE POUR LA LIGNE DE SÉPARATION */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2em 0;
    color: #FF9900;
    font-size: 0.9em;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.separator:not(:empty)::before {
    margin-right: 0.5em;
}

.separator:not(:empty)::after {
    margin-left: 0.5em;
}

.mode-switch {
    margin-top: 2em;
    font-size: 0.9em;
    color: #888;
}

.mode-switch a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.mode-switch a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
    .container {
        margin: 1em;
        padding: 2em 1.5em;
    }
    .input-wrapper input {
        padding: 1em 1em 1em 2.5em;
    }
}

.alert {
  font-size: 15px;
  margin-bottom: 2rem; }

.alert.icons-alert {
  border-left-width: 48px; }
  .alert.icons-alert .alert-icon {
    left: 15px;
    position: relative;
    text-align: center;
    top: 0;
    z-index: 3; }
  .alert.icons-alert p {
    line-height: 21px;
    margin-bottom: 0; }

.close {
  font-size: 16px;
  margin-top: 5px; }

.alert-success {
  background-color: #fff;
  border-color: #11c15b;
  color: #11c15b; }

.alert-info {
  background-color: #fff;
  border-color: #00bcd4;
  color: #00bcd4; }

.alert-warning {
  background-color: #fff;
  border-color: #ffe100;
  color: #ffe100; }

.alert-danger {
  background-color: #fff;
  border-color: #ff5252;
  color: #ff5252; }

  .alert-default {
  background-color: #fff;
  border-color: #d6d6d6;
  color: #d6d6d6; }

.alert-primary {
  background-color: #fff;
  border-color: #448aff;
  color: #448aff; }

