/* Modern Registration Page Styling - Restructured Layout */

/* Page Background */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #071A26 0%, #033752 50%, #00BCD4 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Add animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(125, 206, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(3, 55, 82, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Main container styling */
.block-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.panel {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-center {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create the two-column layout for registration */
.fullwidth-content {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: rgba(244, 245, 245, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(7, 26, 38, 0.3);
    backdrop-filter: blur(10px);
    min-height: 500px;
    position: relative;
}

/* Left side - Welcome section with logo, header, and terms */
.custom-register-left {
    width: 50%;
    background: linear-gradient(135deg, #071A26 0%, #033752 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #F4F5F5;
    text-align: center;
    padding: 40px 30px;
    box-sizing: border-box;
}

/* Logo styling for left side */
.custom-register-left .register-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.custom-register-left .register-logo:hover {
    transform: scale(1.05);
}

/* Header styling for left side */
.custom-register-left h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F4F5F5;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.custom-register-left p {
    font-size: 0.95rem;
    color: #F4F5F5;
    opacity: 0.9;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

/* Terms disclaimer for left side */
.custom-register-left .register-disclaimer {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8rem;
    color: #F4F5F5;
    text-align: center;
    opacity: 0.9;
    line-height: 1.3;
}

.custom-register-left .register-disclaimer a {
    color: #00BCD4;
    text-decoration: none;
    font-weight: 600;
}

.custom-register-left .register-disclaimer a:hover {
    color: #7DCE13;
    text-decoration: underline;
}

/* Right side - Form container */
.custom-register-wrapper {
    width: 50%;
    padding: 40px 35px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Hide the original header elements on right side */
.custom-register-wrapper .custom-register-header {
    display: none;
}

.custom-register-wrapper .register-disclaimer {
    display: none;
}

/* Form container */
.um.um-register {
    max-width: none !important;
    width: 100%;
}

/* Form styling */
.um-form {
    width: 100%;
}

.um-form form {
    width: 100%;
}

/* Row styling for compact two-column layout */
.um-row {
    margin: 0 0 20px 0 !important;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Column styling - Make all paired fields equal width */
.um-col-1 {
    width: 100% !important;
}

.um-col-121, .um-col-122 {
    flex: 1;
    min-width: calc(50% - 10px);
}

.um-col-122:empty {
    display: none;
}

/* Force specific rows to display side by side */
.um-row._um_row_2 .um-col-121 {
    flex: 1;
    min-width: calc(50% - 10px);
}

.um-row._um_row_2 .um-col-122 {
    flex: 1;
    min-width: calc(50% - 10px);
    display: block !important;
}

/* Password fields in single column but stacked - now in row 3 */
.um-row._um_row_3 .um-col-121 {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Field styling */
.um-field {
    margin-bottom: 15px !important;
    width: 100%;
}

.um-field-label {
    margin-bottom: 8px;
}

.um-field-label label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #071A26;
    opacity: 0.9;
}

/* Input field styling */
.um-form-field {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid rgba(7, 26, 38, 0.1) !important;
    border-radius: 8px !important;
    background: #F4F5F5 !important;
    font-size: 0.95rem !important;
    color: #071A26 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box;
}

.um-form-field:focus {
    border-color: #00BCD4 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1) !important;
    background: #ffffff !important;
}

.um-form-field::placeholder {
    color: rgba(7, 26, 38, 0.5) !important;
}

/* Button styling */
.um-button {
    width: 100% !important;
    padding: 15px 30px !important;
    background: linear-gradient(135deg, #7DCE13 0%, #00BCD4 100%) !important;
    color: #F4F5F5 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 15px !important;
}

.um-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(125, 206, 19, 0.3) !important;
}

/* Center the submit button */
.um-center {
    text-align: center;
    width: 100%;
}

/* Clear floats */
.um-clear {
    clear: both !important;
}

/* Special handling for the new structure */
.um-row._um_row_2 .um-col-121,
.um-row._um_row_2 .um-col-122 {
    flex: 1;
    min-width: calc(50% - 10px);
}

/* Password fields are now in row 3 */
.um-row._um_row_3 .um-col-121 {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ensure password fields are visible and properly spaced */
.um-row._um_row_3 .um-field {
    margin-bottom: 0 !important;
    width: 100%;
}

/* Responsive design */
@media (max-width: 968px) {
    .fullwidth-content {
        flex-direction: column;
        margin: 10px;
        max-width: 600px;
        min-height: auto;
    }
    
    .custom-register-left {
        position: static !important;
        width: 100% !important;
        font-size: 1.6rem;
        padding: 40px 20px;
        min-height: auto;
    }
    
    .custom-register-left h2 {
        font-size: 1.8rem;
    }
    
    .custom-register-left p {
        font-size: 1rem;
    }
    
    .custom-register-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 40px 25px;
        min-height: auto;
    }
    
    .um-row {
        flex-direction: column;
        gap: 0;
    }
    
    .um-col-121, .um-col-122 {
        width: 100% !important;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .block-content {
        padding: 10px;
    }
    
    .custom-register-wrapper {
        padding: 30px 15px;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .custom-register-left {
        padding: 30px 15px;
        width: 100% !important;
    }
    
    .custom-register-left h2 {
        font-size: 1.5rem;
    }
    
    .custom-register-left p {
        font-size: 0.9rem;
    }
}

/* Loading animation for submit button */
.um-button:active {
    transform: scale(0.98) !important;
}

/* Add subtle animation to form elements */
.custom-register-left,
.um-row {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.custom-register-left { animation-delay: 0.1s; }
.um-row:nth-child(1) { animation-delay: 0.3s; }
.um-row:nth-child(2) { animation-delay: 0.4s; }
.um-row:nth-child(3) { animation-delay: 0.5s; }
.um-row:nth-child(4) { animation-delay: 0.6s; }
.um-col-alt { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation styling */
.um-form-field.valid {
    border-color: rgba(125, 206, 19, 0.3) !important;
}

.um-form-field:invalid {
    border-color: rgba(220, 53, 69, 0.3) !important;
}

/* Hide Ultimate Member default styling conflicts */
.um-form .um-row {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure proper spacing */
.container {
    padding: 0 !important;
    margin: 0 !important;
}

.entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Compact layout overrides */
.um-2304.um {
    max-width: none !important;
}

/* Force proper field pairing layout */
.um-row._um_row_1 {
    /* Nombre + Apellidos - already paired */
}

.um-row._um_row_2 {
    /* Username + Email - now properly paired */
}

.um-row._um_row_3 {
    /* Password fields - keep stacked vertically */
    gap: 0 !important;
}

.um-row._um_row_3 .um-field {
    margin-bottom: 15px !important;
}