/* CSS específico para la página de registro */
/* Variables de color */
:root {
    --background: #091431;
    --card-bg: #060918;
    --input-bg: #131624;
    --input-border: #0f254e;
    --button-blue: #008de6;
    --text-white: #ffffff;
    --text-gray: #6c757d;
    --text-blue: #008de6;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

/* Estilos base */
html, body {
    height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
}

/* Contenedor principal */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: auto;
}

.register-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--background);
}

/* Sección del Formulario */
.register-section {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    padding: 20px;
}

/* Sección de la Imagen */
.image-section {
    flex: 1;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}

.register-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tarjeta de Registro */
.register-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: card-entrance 0.8s ease-out;
}

@keyframes card-entrance {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Encabezado */
.register-header {
    text-align: center;
    padding: 20px 25px 15px;
}

.register-header img {
    max-width: 120px;
}

.register-header h3 {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.register-header p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

/* Cuerpo del formulario */
.register-body {
    padding: 20px 25px 25px;
}

/* Controles de Formulario */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-white);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
}

.form-error, .text-danger, .errorlist {
    color: #ef4444 !important;
    font-size: 0.98em;
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 0;
    word-break: break-word;
}

.errorlist {
    list-style: none;
    padding-left: 0;
}

.form-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 11px 15px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--button-blue);
    background: var(--input-bg);
    box-shadow: 0 0 0 1px var(--button-blue);
}

.form-control::placeholder {
    color: var(--text-gray);
}

/* Botón */
.btn-register {
    width: 100%;
    padding: 12px 20px;
    background: var(--button-blue);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 12px 0;
    font-family: 'Poppins', sans-serif;
}

.btn-register:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-register:active {
    transform: translateY(0);
}

/* Enlaces adicionales */
.additional-links {
    text-align: center;
    margin-top: 12px;
}

.additional-links a {
    color: var(--button-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.additional-links a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.additional-links p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

/* Estilos de Recomendaciones de Contraseña */
#password-recommendations {
    margin-top: 10px; 
    border-radius: 8px;
    padding: 5px 0;
}

#password-requirements li {
    list-style: none;
    margin-top: 4px;
}

/* Media Queries (Responsive) */
@media (max-width: 992px) {
    .register-wrapper {
        flex-direction: column;
    }
    .register-section, .image-section {
        max-width: 100%;
        flex: none;
    }
    .image-section {
        height: 200px;
        order: -1;
    }
    .register-section {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .register-card {
        max-width: 100%;
        margin: 0;
    }
    .register-header, .register-body {
        padding: 20px;
    }
    .image-section {
        display: none;
    }
}