:root {
    --primary-color: #00C1B8;
    --primary-dark: #009f98;
    --secondary-color: #00223f;
    --light-gray: #f8f9fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #616161;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #eef2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Contenedor Principal (Tarjeta Dividida) */
.register-container {
    display: flex;
    width: 830px;
    max-width: 95vw;
    min-height: 520px;
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: auto;
}

/* Columna Izquierda: Formulario */
.register-form {
    flex: 1.15;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    max-width: 250px;
    width: 78%;
    margin: 0 auto;
    text-align: left;
}

.logo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-wrapper .tag {
    display: block;
    background-color: #00223f;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 3px;
    padding: 2px 0;
    border-radius: 20px;
    text-align: center;
    margin-left: 23.5%;
    width: 76.5%;
    margin-top: -6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Campos e Inputs con estilo 3D y bordes redondeados */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.input-field {
    width: 100%;
    margin-bottom: 14px;
}

.input-group select,
.input-group input,
.input-field input {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    border: 2px solid #d4d4d4;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #333333;
    background-color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 6px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 13px;
    cursor: pointer;
}

.input-group select:focus,
.input-group input:focus,
.input-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 193, 184, 0.25), 0 3px 6px rgba(0, 0, 0, 0.22);
    outline: none;
}

.input-group select::placeholder,
.input-group input::placeholder,
.input-field input::placeholder {
    color: #7d8590;
    font-weight: 400;
}

/* Términos y Condiciones Checkbox */
.terms-container {
    margin-top: 6px;
    margin-bottom: 18px;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #333333;
    cursor: pointer;
    line-height: 1.35;
}

.terms-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Botón de Registro */
.btn-register {
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 193, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 193, 184, 0.4);
}

.btn-register:active {
    transform: translateY(0);
}

/* Columna Derecha: Imagen y Mensaje Legal */
.register-image {
    flex: 1;
    position: relative;
    background: url('/assets/dist/IMG/signIn_UpAMLRISK.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    min-height: 480px;
}

.register-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 34, 63, 0.72) 0%, rgba(0, 193, 184, 0.45) 100%);
    z-index: 1;
}

.legal-message {
    position: relative;
    z-index: 2;
    background: rgba(0, 34, 63, 0.78);
    padding: 26px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-message p {
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 600;
}

.legal-message p:last-child {
    margin-bottom: 0;
}

.legal-message a {
    color: #00C1B8;
    text-decoration: underline;
    font-weight: 600;
}

.legal-message a:hover {
    color: #ffffff;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 860px) {
    body {
        padding: 15px;
    }

    .register-container {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        min-height: auto;
        margin: 10px auto;
    }

    .register-form {
        padding: 28px 22px;
    }

    .register-image {
        min-height: auto;
        padding: 25px 20px;
    }

    .legal-message {
        max-width: 100%;
        padding: 22px 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .register-container {
        max-width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .register-form {
        padding: 22px 16px;
    }

    .form-header {
        margin-bottom: 16px;
    }

    .logo-wrapper {
        max-width: 220px;
        width: 85%;
    }

    .input-group {
        gap: 10px;
        margin-bottom: 12px;
    }

    .input-field {
        margin-bottom: 12px;
    }

    .input-group select,
    .input-group input,
    .input-field input {
        height: 40px;
        font-size: 0.88rem;
        padding: 8px 10px;
    }

    .terms-label {
        font-size: 0.8rem;
    }

    .btn-register {
        height: 44px;
        font-size: 0.95rem;
    }

    .legal-message {
        padding: 18px 14px;
    }

    .legal-message p {
        font-size: 0.84rem;
    }
}