:root {
    --register-primary-color: #C71871;
    --register-muted-color: #999;
    --register-error-color: #E74C3C;
    --register-warning-color: #F39C12;
    --register-success-color: #2ecc71;
    --register-strength-empty-color: #e0e0e0;
    --register-heading-color: #222;
    --register-label-color: #666;
    --register-terms-link-color: #e91e8c;
    --register-strength-track-color: #eee;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body.register-page-body {
    background: #f6f6f6;
    overflow-x: hidden; 
}

.register-wrapper {
    display: flex;
    width: 100%;
    min-height: 100dvh;
    background: #f6f6f6;
}

.register-left {
    flex: 1.2;
    padding: 60px 24px 24px;
    background: #f6f6f6;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.register-left .container-fluid {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding-bottom: 18px;
}

.register-left .btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FB75AE;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
    cursor: pointer;
}

.register-left .btn-back:hover {
    background: #c2185b;
    color: #ffffff;
    transform: scale(1.05);
}

.register-title {
    color: #C71871;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 10px 0 4px 0;
}

.register-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 2px;
}

.register-subtitle-secondary {
    color: #7a7a7a;
    font-size: 0.825rem;
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-col {
    flex: 1;
}

.input-with-icon-register {
    position: relative;
    margin-bottom: 14px;
}

.input-with-icon-register label {
    display: block;
    font-size: 13px;
    color: #333333;
    margin-bottom: 6px;
    font-weight: 600;
}

.input-field-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password-btn {
    color: var(--register-muted-color);
}

.input-field-wrapper .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #AF1C6C;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.input-field-wrapper .register-form-control {
    width: 100%;
    padding: 10px 16px 10px 52px;
    border-radius: 10px;
    border: 1px solid #efebef;
    background: #ffffff;
    height: 48px;
    box-shadow: none;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-field-wrapper .register-form-control:focus {
    border-color: #AF1C6C;
}

.input-field-wrapper .register-form-control::placeholder {
    color: #c2c2c2;
}

.password-strength-header {
    color: var(--register-heading-color);
}

#register-match-text,
.password-strength-criteria {
    color: var(--register-muted-color);
}

.password-strength-bar {
    background: var(--register-strength-track-color);
}

#register-strength-fill {
    background: var(--register-strength-empty-color);
}

label[for="chkbox-terms"] {
    color: var(--register-label-color);
}

label[for="chkbox-terms"] a {
    color: var(--register-terms-link-color);
}

.terms-captcha-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.terms-captcha-row .captcha-col {
    order: 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.terms-captcha-row .terms-col {
    order: 1;
    flex: 1 1 auto;
    min-width: 200px;
}

.terms-captcha-row .captcha-col .g-recaptcha {
    transform: scale(0.77);
    transform-origin: left center;
}

.btn-create {
    background: #C71871;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    width: 100%;
    font-weight: 800;
    font-size: 15px;
    transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 20px;
}

.btn-create:hover {
    background: #af1462;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.18);
}

.register-left .continue-text {
    position: relative;
    margin: 8px 0 14px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.register-left .continue-text::before, 
.register-left .continue-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e0e0e0;
}

.register-left .continue-text::before { left: 0; }
.register-left .continue-text::after { right: 0; }

.register-left .social-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.register-left .social-button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #AF1C6C;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12px;
    color: #AF1C6C !important;
    text-decoration: none;
    transition: background 0.2s;
}

.register-left .social-button:hover {
    background: #fff0f6;
}

.invalid-feedback-register {
    font-size: 12px;
    color: #dc3545;
    display: block;
    margin-top: 4px;
    padding-left: 4px;
}

.register-right {
    flex: 1;
    background-color: #AF1C6C;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.right-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.logo-circle-register {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    padding: 14px;
}

.logo-circle-register img {
    width: 65%;
    height: auto;
}

.right-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0 12px;
    color: #ffffff;
}

.right-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.4;
}

.right-content .btn-login-white {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    background: #ffffff;
    color: #AF1C6C !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
    display: inline-block;
}

.right-content .btn-login-white:hover {
    transform: translateY(-2px);
    background: #fbfbfb;
}

.register-right .social-links {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.register-right .social-links .btn-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #C71871;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    border: none;
    box-shadow: 0 6px 18px rgba(199, 23, 113, 0.08);
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}

.register-right .social-links .btn-social:hover {
    transform: translateY(-2px);
}

.register-right .contact-info {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 24px;
    text-align: center;
}

/* ESCRITORIO: Bloqueamos estrictamente el scroll */
@media (min-width: 992px) {
    body.register-page-body {
        overflow: hidden !important;
    }

    .register-wrapper {
        height: 100vh;
        overflow: hidden !important;
    }

    .register-left {
        height: 100vh;
        overflow: hidden !important;
    }

    .register-right {
        height: 100vh;
        overflow: hidden !important;
    }
}

/* MÓVILES Y TABLETS: Permite el scroll responsivo */
@media (max-width: 991.98px) {
    .register-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
    }

    .register-left {
        order: 1;
        padding: 60px 20px 32px 20px;
        flex: auto;
    }

    .register-right {
        order: 2;
        padding: 40px 20px;
        flex: auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .terms-captcha-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .terms-captcha-row .captcha-col .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 360px) {
    .register-left .social-buttons {
        flex-direction: column;
    }
    
    .terms-captcha-row .captcha-col .g-recaptcha {
        transform: scale(0.70);
    }
}