/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales para el cuerpo de la página */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E90FF, #00BFFF); /* Fondo con gradiente azul suave */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* Contenedor principal */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caja del formulario */
.login-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Título del formulario */
h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2.2rem;
    font-weight: 600;
}

/* Estilos para los grupos de entrada */
.input-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

/* Estilo para las etiquetas de los campos */
.input-group label {
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Estilo para los campos de entrada (text, password) */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: #f7f7f7;
    transition: border-color 0.3s ease;
}

/* Efecto focus en los campos de entrada */
input[type="text"]:focus, input[type="password"]:focus {
    border-color: #00BFFF;
    outline: none;
}

/* Estilos para el botón de envío */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #1E90FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Efecto hover en el botón de inicio de sesión */
.btn-submit:hover {
    background-color: #00BFFF;
}

/* Enlace para registro */
.register-link {
    margin-top: 15px;
    font-size: 1.1rem;
}

.register-link a {
    color: #1E90FF;
    text-decoration: none;
    font-weight: bold;
}

/* Efecto hover en el enlace de registro */
.register-link a:hover {
    text-decoration: underline;
}

/* Estilo para los mensajes de error y éxito */
.error-msg {
    margin-top: 20px;
    background-color: #FF6347;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.success-msg {
    margin-top: 20px;
    background-color: #32CD32;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

/* Animaciones para la transición */
input[type="text"], input[type="password"], .btn-submit {
    transition: all 0.3s ease;
}
/* Panel de administración */
.admin-box, .user-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    margin: auto;
}

.admin-box h1, .user-box h1 {
    font-size: 2.5rem;
    color: #333;
}

.admin-box p, .user-box p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

/* Botones */
a.btn-submit {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1E90FF;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

a.btn-submit:hover {
    background-color: #00BFFF;
}
