/* =========== HECHO CON AMOR =========== */
/* Página de Registro optimizada - Características:
   - Diseño de dos secciones: Hero y Formulario
   - Formulario con scrollbar personalizada
   - Grid responsive para campos en desktop
   - Efectos hover y transiciones suaves
   - Totalmente responsive y accesible */

@font-face {
    font-family: "Nunito Sans";
    src: url("/assets/fonts/NunitoSans/NunitoSans-Italic-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype"),
        url("/assets/fonts/NunitoSans/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype");
}
/* =========== RESET Y BASE =========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    list-style: none;
    font-family: "Nunito Sans", sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
}

/* =========== HERO SECTION =========== */
.register-hero {
    height: 100vh;
    background-image: url('../../assets/images/photos/HeroImageLoginR.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(23, 23, 23, 0.5) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    color: #FFFFF0;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #FF8C00;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
    position: relative;
    display: inline-block;
    margin: 0;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FF8C00, #B22222);
    border-radius: 2px;
    transform: translateX(-50%);
}

/* =========== BOTÓN CTA =========== */
.register-cta {
    position: relative;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFF0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(178, 34, 34, 0.3),
        0 4px 0 #8B0000,
        inset 0 1px 0 rgba(255, 255, 240, 0.2);
    margin-top: 1rem;
}

.register-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 240, 0.2), transparent);
    transition: left 0.6s ease;
}

.register-cta:hover::before {
    left: 100%;
}

.register-cta:hover {
    background: linear-gradient(135deg, #FF4500 0%, #B22222 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 69, 0, 0.4),
        0 6px 0 #B22222,
        inset 0 1px 0 rgba(255, 255, 240, 0.3);
    letter-spacing: 2px;
}

.register-cta:active {
    transform: translateY(1px) scale(1.02);
    box-shadow: 
        0 5px 15px rgba(178, 34, 34, 0.4),
        0 2px 0 #8B0000,
        inset 0 1px 0 rgba(255, 255, 240, 0.2);
}

.register-cta span {
    position: relative;
    z-index: 1;
}

/* =========== SECCIÓN REGISTRO =========== */
.register-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.register-container {
    width: 100%;
    max-width: 700px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-form {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid #2A2A2A;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
}

/* =========== SCROLLBAR PERSONALIZADA =========== */
.register-form::-webkit-scrollbar {
    width: 8px;
}

.register-form::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 10px;
    margin: 5px 0;
}

.register-form::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #B22222 0%, #FF4500 100%);
    border-radius: 10px;
    border: 2px solid rgba(26, 26, 26, 0.8);
    transition: all 0.3s ease;
}

.register-form::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.register-form::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
}

.register-form {
    scrollbar-width: thin;
    scrollbar-color: #B22222 rgba(42, 42, 42, 0.3);
}

.register-form:hover {
    border-color: #B22222;
    box-shadow: 0 25px 50px rgba(178, 34, 34, 0.2);
}

/* =========== TÍTULO REGISTRO =========== */
.register-title {
    font-size: 2rem;
    color: #FFFFF0;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    word-wrap: break-word;
    white-space: nowrap;
}

/* =========== FORMULARIO =========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    color: #FFFFF0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 240, 0.05);
    border: 2px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFF0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    height: 48px;
}

.form-input::placeholder {
    color: rgba(255, 255, 240, 0.5);
    font-size: 0.85rem;
}

.form-input:focus {
    border-color: #B22222;
    background: rgba(255, 255, 240, 0.08);
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.2);
}

.phone-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-selector {
    flex-shrink: 0;
}

.country-code-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    min-width: 90px;
}

.phone-input {
    flex: 1;
}

/* Estilos para el tema oscuro */
@media (prefers-color-scheme: dark) {
    .country-code-select {
        background: #2A2A2A;
        border-color: #444;
        color: white;
    }
}

.error-message {
    display: block;
    color: #B22222;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =========== BOTÓN REGISTRO =========== */
.register-button {
    position: relative;
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    border: none;
    border-radius: 10px;
    color: #FFFFF0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    margin: 2rem 0 1.5rem 0;
    box-shadow: 
        0 8px 25px rgba(178, 34, 34, 0.3),
        0 4px 0 #8B0000,
        inset 0 1px 0 rgba(255, 255, 240, 0.2);
    height: 52px;
}

.register-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 240, 0.2), transparent);
    transition: left 0.6s ease;
}

.register-button:hover::before {
    left: 100%;
}

.register-button:hover {
    background: linear-gradient(135deg, #FF4500 0%, #B22222 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(255, 69, 0, 0.4),
        0 5px 0 #B22222,
        inset 0 1px 0 rgba(255, 255, 240, 0.3);
    letter-spacing: 1.5px;
}

.register-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 5px 15px rgba(178, 34, 34, 0.4),
        0 2px 0 #8B0000,
        inset 0 1px 0 rgba(255, 255, 240, 0.2);
}

.register-button span {
    position: relative;
    z-index: 1;
}

/* =========== ENLACE LOGIN =========== */
.login-link {
    text-align: center;
    color: rgba(255, 255, 240, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.login-anchor {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.login-anchor::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #FF8C00, #B22222);
    transition: width 0.3s ease;
}

.login-anchor:hover {
    color: #FFFFF0;
}

.login-anchor:hover::after {
    width: 100%;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
    .register-title {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .register-cta {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .register-form {
        padding: 2rem 2rem;
        max-width: 90%;
        max-height: 80vh;
    }
    
    .register-title {
        font-size: 1.6rem;
        letter-spacing: 5px;
        margin-bottom: 1.5rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .register-container {
        max-width: 90%;
    }
    
    .form-input {
        height: 46px;
        padding: 0.8rem 0.9rem;
    }
    
    .register-button {
        height: 50px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .register-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .register-section {
        padding: 1.5rem 1rem;
    }
    
    .register-form {
        padding: 1.5rem 1.5rem;
        max-height: 75vh;
    }
    
    .register-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
        margin-bottom: 1.2rem;
        white-space: normal;
        line-height: 1.2;
        word-spacing: 4px;
    }
    
    .form-input {
        height: 44px;
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .register-button {
        height: 48px;
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .register-form::-webkit-scrollbar {
        width: 6px;
    }
}

@media (max-width: 360px) {
    .register-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
        word-spacing: 3px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .register-form {
        padding: 1.2rem 1.2rem;
    }
}