/* Global Styles */
body {
    background-color: lightgray; /* Fondo cambiado a lightgray */
    color: #000; /* Texto negro para mayor contraste */
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0 20px;
    -webkit-font-smoothing: antialiased; /* Mejora la visualización en dispositivos Apple */
}

/* Login Container */
.login-container {
    background: #fff; /* Fondo del contenedor cambiado a blanco */
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Sombras más suaves */
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    border: 1px solid #000; /* Contorno negro */
    position: relative;
    transform: translateZ(0);
}

/* Form */
.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 26px;
    color: #000; /* Título en negro */
}

/* Form Fields */
.form-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.form-group .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #000; /* Íconos en negro */
    font-size: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid rgba(0, 0, 0, 0.3); /* Contorno tenue */
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05); /* Fondo claro */
    color: #000; /* Texto negro */
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    background-color: rgba(0, 0, 0, 0.1); /* Fondo más oscuro al enfocar */
    border-color: #000; /* Contorno negro al enfocar */
}

.form-group input::placeholder {
    color: #666; /* Placeholder en gris oscuro */
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #D3D3D3, #BEBEBE); /* Botón degradado claro */
    color: #000; /* Texto negro */
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra más tenue */
}

.btn:hover {
    background: linear-gradient(45deg, #BEBEBE, #D3D3D3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Links */
.signup-link, .login-link {
    text-align: center;
    margin-top: 25px;
}

.signup-link p, .login-link p {
    font-size: 14px;
    color: #000; /* Texto en negro */
}

.signup-text, .login-text {
    color: #000; /* Links en negro */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.signup-text:hover, .login-text:hover {
    color: #444; /* Texto más oscuro al pasar el cursor */
    transform: scale(1.1);
}

/* Password Toggle Icon */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: 2px solid #000; /* Contorno negro */
    border-radius: 50%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.toggle-password::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #000; /* Icono negro */
    background-color: transparent;
}

.toggle-password::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #000; /* Líneas en negro */
    opacity: 1;
}

.toggle-password.active::after {
    opacity: 0;
}

/* Estilo del mensaje de error */
.error-message {
    color: #ff4d4d; /* Rojo claro para indicar error */
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
}
