@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #e7eeff !important;
    background-image: none !important;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: backgroundFadeIn 1s ease-in-out;
}

@keyframes backgroundFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-container,
.register-container {
    width: 100%;
    max-width: 550px;
    background: #ffffff; /* Cuadro blanco */
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Sombra suave */
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    color: #000; /* Texto negro */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #000;
    font-size: 28px;
    margin-bottom: 25px;
}

p {
    color: #333;
    font-size: 14px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #000;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-group input,
.input-group select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    background-color: #fff;
    color: #000;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-group input::placeholder {
    color: #999;
}

.input-group input:focus,
.input-group select:focus {
    background-color: #f0f8ff;
    border: 1px solid #7b68ee;
    box-shadow: 0 0 8px #7b68ee;
}

/* Estilo de opciones desplegadas del <select> */
.input-group select option {
    background-color: #fff;
    color: #000;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #390f74; /* Color fijo solicitado */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra ligera opcional */
    transition: background-color 0.3s ease, transform 0.2s;
}

button:hover {
    background-color: #2e0d5c; /* Un poco más oscuro al hacer hover */
    transform: translateY(-2px);
}


.switch-form a {
    color: #7b68ee;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.switch-form a:hover {
    text-decoration: underline;
    color: #9d50bb;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / 3;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
    .login-container {
        max-width: 90%;
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
