/* Estilo general del cuerpo */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;

    border-top: 8px solid #0A4B8A;
    padding-top: 2rem;
    box-sizing: border-box;
    position: relative;
}

/* Enlace de "Atrás" */
.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    margin-bottom: 1.5rem;
    color: #0A4B8A;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    align-items: center;
}
.back-link:hover {
    text-decoration: none;
}
.back-link i {
    margin-right: 0.5rem;
}

/* Contenedor principal para centrar todo verticalmente */
.login-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-top: 2rem;
}

/* Login box del formulario */
.login-box {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.3rem;
    color: #0A4B8A;
}

.login-box .subtitle {
    margin-bottom: 2rem;
    color: #3A3A3A;
    line-height: 1.5;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    font-weight: 300;
    color: #0D1F40;     
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 0 0.2rem;
}

.form-group label.active {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #007bff;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem 0.5rem;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background: transparent;
}

/* Columnas del formulario */
.form-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-column {
    flex: 1;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #0D1F40;
}

.helper-text {
    display: block;
    font-size: 0.8rem;
    color: #3A3A3A;
    margin-top: 0.5rem;
}

/* Enlace de Olvidaste constraseña? */
.forgot-password {
    display: block;
    margin-bottom: 2rem;
    color: #007bff;
    text-decoration:  none;
    font-size: 0.9rem;
}
.forgot-password:hover {
    text-decoration: underline;
}

/* Botones genéricos */
.btn {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    padding: 0.7rem;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    margin: 0 auto;
}
.btn:hover {
    opacity: 0.85;
}

/* Botón Ingresar */
.btn-primary {
    background-color: #0A4B8A;
}

.register-section {
    text-align: center;
}
.register-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.register-section p {
    color: #3A3A3A;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Botón Únete */
.btn-secondary {
    background-color: #E22863;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-secondary i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Modal de éxito */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-body {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

/* Mensaje de error */
.error-message {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}
