/* Contenedor general del login */
/* Hace que padding y border se incluyan en el ancho y alto total */
*, *::before, *::after {
    box-sizing: border-box;
}


.form-section {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: #fff;
    text-align: center;
}

.form-section h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.form-section p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

/* Inputs */
.form-section input[type="email"],
.form-section input[type="password"],
.form-section input[type="text"],
.form-section input[type="date"],
.form-section select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-section select option[disabled] {
    color: #888;
}

/* Focus */
.form-section select:focus {
    border-color: #ff375f;
    box-shadow: 0 0 5px rgba(255, 55, 95, 0.5);
    background-color: #111;
    color: #fff;
}

/* Opciones normales */
.form-section select option {
    background-color: #111;
    color: #fff;
}

.form-section input:focus {
    border-color: #ff375f;
    box-shadow: 0 0 5px rgba(255, 55, 95, 0.5);
}

.form-section input::placeholder {
    color: #888;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

/* Input con espacio para el toggle */
.password-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    height: 40px; /* fuerza altura constante */
}


/* Botón toggle perfectamente centrado verticalmente */
.password-wrapper .toggle-password {
    position: absolute;
    top: -14%;
    right: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

/* Hover para feedback */
.password-wrapper .toggle-password:hover {
    color: #ff375f;
}

/* Botón de login */
.btn-primary {
    width: 100%;
    padding: 10px 0;
    background-color: #ff375f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #e02e52;
}

/* Enlaces */
.form-section a {
    color: #ff375f;
    text-decoration: none;
}

.form-section a:hover {
    text-decoration: underline;
}

.form-section .error {
    color: #ff5d7a;
    font-size: 14px;
    margin-bottom: 10px;
}

.form-section input:focus {
    border-color: #ff375f;
    box-shadow: 0 0 5px rgba(255, 55, 95, 0.5);
}

.password-wrapper .toggle-password:hover {
    color: #ff375f;
}

@media (max-width: 480px) {
    .form-section {
        margin: 30px 15px;
        padding: 20px;
    }

    .form-section h1 {
        font-size: 24px;
    }

    .btn-primary {
        font-size: 14px;
    }
}

.form-section input,
.btn-primary,
.password-wrapper .toggle-password {
    transition: all 0.2s ease;
}

.terms {
    margin: 10px 0;
    font-size: 0.9rem;
}

.terms a {
    color: #007bff;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}
