/* Styles spécifiques à la page de connexion */
.login-container {
    max-width: 500px;
    margin: 120px auto 60px;
    padding: 30px;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

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

.login-form {
    background-color: rgba(42, 42, 42, 0.8);
    padding: 25px;
    border-radius: 0;
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.login-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--flame-highlight);
}

/* Styles pour les champs de formulaire */
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: var(--dark-color);
    color: var(--light-color);
    font-family: inherit;
    transition: all 0.3s ease;
    border-left: 3px solid var(--secondary-color);
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
    background-color: rgba(42, 42, 42, 0.9);
}

.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s steps(3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.5);
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--flame-highlight);
    text-decoration: underline;
}

.field-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Style spécifique pour le champ email dans le formulaire de réinitialisation */
.email-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.email-icon {
    position: absolute;
    left: 10px;
    color: var(--flame-highlight);
    z-index: 1;
    font-size: 16px;
}

.field-wrapper input[type="email"] {
    border-left: 3px solid var(--flame-highlight);
    box-shadow: 0 0 5px rgba(255, 119, 0, 0.3);
    padding-left: 35px;
    background-image: linear-gradient(to right, rgba(255, 119, 0, 0.1), transparent 50%);
    width: 100%;
}

.field-wrapper input[type="email"]:focus {
    border-left: 3px solid var(--flame-highlight);
    box-shadow: 0 0 8px rgba(255, 119, 0, 0.5);
    background-color: rgba(42, 42, 42, 0.95);
    animation: emailPulse 2s infinite;
}

@keyframes emailPulse {
    0% { border-left-color: var(--flame-highlight); }
    50% { border-left-color: var(--secondary-color); }
    100% { border-left-color: var(--flame-highlight); }
}

/* Pixel decorations */
.pixel-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M0 0h10v10H0V0zm10 10h10v10H10V10zm10-10h10v10H20V0zm0 20h10v10H20V20z' fill='%23ff7700'/%3E%3C/svg%3E");
    background-size: contain;
    image-rendering: pixelated;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
    transform: rotate(90deg);
}

.bottom-left {
    bottom: 0;
    left: 0;
    transform: rotate(270deg);
}

.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* Message d'erreur stylisé */
.error-message {
    background-color: var(--danger-color);
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #990000;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}