/* Modern Sign-In Page Styling */

/* 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: 1200px;
    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 */
.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);
}

/* Left side - Welcome section */
.fullwidth-content::before {
    content: '';
    flex: 1;
    background: linear-gradient(135deg, #071A26 0%, #033752 100%);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add decorative elements to left side */
.fullwidth-content::after {
    content: 'Bienvenido de nuevo\A Inicia sesión para continuar\A con el acceso';
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: #F4F5F5;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: pre-line;
    z-index: 2;
}

/* Position the form container */
.um.um-login {
    flex: 1;
    max-width: none !important;
    padding: 60px 50px;
    background: transparent;
    position: relative;
    z-index: 3;
}

/* Form styling */
.um-form {
    width: 100%;
}

.um-form form {
    width: 100%;
}

/* Form title */
.um-form::before {
    content: 'Sign In';
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #071A26;
    margin-bottom: 40px;
    text-align: left;
}

/* Field styling */
.um-field {
    margin-bottom: 25px !important;
}

.um-field-label {
    margin-bottom: 8px;
}

.um-field-label label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #071A26;
    opacity: 0.8;
}

/* Input field styling */
.um-form-field {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid rgba(7, 26, 38, 0.1) !important;
    border-radius: 10px !important;
    background: #F4F5F5 !important;
    font-size: 1rem !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;
}

/* Checkbox styling */
.um-field-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 20px 0 !important;
}

.um-field-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #00BCD4 !important;
}

.um-field-checkbox-option {
    font-size: 0.9rem !important;
    color: #071A26 !important;
    opacity: 0.8;
}

/* 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: 10px !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-bottom: 15px !important;
}

.um-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(125, 206, 19, 0.3) !important;
}

/* Secondary button (Register) */
.um-button.um-alt {
    background: transparent !important;
    color: #071A26 !important;
    border: 2px solid rgba(7, 26, 38, 0.2) !important;
}

.um-button.um-alt:hover {
    background: #071A26 !important;
    color: #F4F5F5 !important;
    border-color: #071A26 !important;
}

/* Button layout */
.um-left.um-half, .um-right.um-half {
    width: 100% !important;
    float: none !important;
}

.um-right.um-half {
    margin-top: 10px;
}

/* Forgot password link */
.um-col-alt-b {
    text-align: center;
    margin-top: 30px;
}

.um-link-alt {
    color: #00BCD4 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.um-link-alt:hover {
    color: #7DCE13 !important;
    text-decoration: underline !important;
}

/* Clear floats */
.um-clear {
    clear: both !important;
}

/* Hide the row margin */
.um-row {
    margin: 0 !important;
}

/* Column styling */
.um-col-1 {
    width: 100% !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .fullwidth-content {
        flex-direction: column;
        margin: 10px;
    }
    
    .fullwidth-content::before {
        display: none;
    }
    
    .fullwidth-content::after {
        position: static;
        transform: none;
        text-align: center;
        padding: 40px 20px;
        background: linear-gradient(135deg, #071A26 0%, #033752 100%);
        margin: 0;
        font-size: 2rem;
    }
    
    .um.um-login {
        padding: 40px 30px;
    }
    
    .um-form::before {
        font-size: 1.5rem;
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .block-content {
        padding: 10px;
    }
    
    .um.um-login {
        padding: 30px 20px;
    }
    
    .fullwidth-content::after {
        font-size: 1.5rem;
        padding: 30px 20px;
    }
}

/* Loading animation for submit button */
.um-button:active {
    transform: scale(0.98) !important;
}

/* Additional visual enhancements */
.um-form {
    position: relative;
}

/* Add subtle animation to form fields */
.um-field {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.um-field:nth-child(1) { animation-delay: 0.1s; }
.um-field:nth-child(2) { animation-delay: 0.2s; }
.um-field:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form container enhancement */
.um-form form {
    position: relative;
    z-index: 1;
}

/* 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;
}