/* Professional Ultimate Member Login Page CSS (Fixed Horizontal Layout) */

/* 1. Page Background - Full Viewport, Dark & Animated */
body.um-body {
    background-color: #161a29; /* Very deep, calming blue-grey */
    background-image: radial-gradient(circle at center, rgba(30, 30, 60, 0.1) 0%, rgba(20, 20, 40, 0.7) 100%); /* Subtle central glow */
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensures it covers full screen height */
    height: 100vh; /* Fixed height to prevent scrolling */
    display: flex; /* To center content */
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Prevent scrolling */
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    text-rendering: optimizeLegibility; /* Better font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background animation for a dynamic feel */
body.um-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 90%, rgba(100, 100, 180, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(200, 200, 255, 0.08) 0%, transparent 50%);
    animation: subtleFloat 25s ease-in-out infinite alternate; /* Slower, more subtle animation */
    z-index: 1; /* Below content, above main background */
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Ensure html/body take full height and prevent scrolling */
html, body {
    height: 100%;
    overflow: hidden; /* Crucial for no-scroll experience */
}

/* 2. Main Content Wrapper - FORCE HORIZONTAL LAYOUT */
.um .um-content-wrapper,
.um-content-wrapper,
.um-form-wrapper,
.um-login-wrapper {
    display: flex !important; /* Force Flexbox */
    flex-direction: row !important; /* Force horizontal */
    flex-wrap: nowrap !important; /* PREVENT WRAPPING at all screen sizes */
    gap: 40px !important; /* Space between cards */
    align-items: center !important; /* Vertically center cards */
    justify-content: center !important; /* Horizontally center cards */
    width: 95% !important; /* Responsive width */
    max-width: 1400px !important; /* Maximum width for very large screens */
    height: 100vh !important; /* Always fill viewport height */
    margin: 0 auto !important; /* Centered horizontally */
    position: relative !important;
    z-index: 10 !important; /* Above background animation */
    padding: 20px 10px !important; /* Reduced padding for mobile */
    box-sizing: border-box !important; /* Include padding in width/height */
}

/* Additional force for any container that might be overriding */
.um-form-container,
.um-login-container,
.um-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    height: 100vh !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. Login Form Card Styling - Responsive */
.um .um-form {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent background for dark theme */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle white border */
    backdrop-filter: blur(12px); /* Stronger frosty glass effect */
    padding: 40px 30px; /* Responsive padding */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); /* Deeper shadow */
    max-width: 450px; /* Max width for the form card */
    min-width: 300px; /* Minimum width to prevent too much shrinking */
    width: 100%; /* Take available width */
    flex: 0 0 auto; /* Don't grow, don't shrink beyond min-width */
    box-sizing: border-box;
    margin: 0;
    color: #e0e0e0; /* Default text color for light elements */
    height: auto; /* Allow height to adjust to content */
    max-height: 90vh; /* Prevent form from being too tall */
    overflow-y: auto; /* Allow scrolling within form if needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 4. Header Section (Logo and Welcome Text) - Responsive */
.um .um-form .my-custom-login-header {
    margin-bottom: 30px; /* Reduced for mobile */
    text-align: center;
}

.um .um-form .my-custom-login-header .login-logo {
    max-width: 70px; /* Smaller logo for mobile compatibility */
    height: auto;
    margin: 0 auto 15px !important; /* Reduced margin */
    display: block;
    border-radius: 10px; /* Slight rounding for logo if square */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)); /* Stronger glow for logo */
}

.um .um-form .my-custom-login-header .welcome-heading {
    font-weight: 700 !important;
    color: #ffffff !important; /* White heading */
    font-size: 28px !important; /* Responsive font size */
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* 5. Input Fields - Responsive */
.um .um-form input[type="email"],
.um .um-form input[type="password"],
.um .um-form input[type="text"] {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Very subtle transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Lighter border */
    border-radius: 10px !important;
    padding: 14px 16px !important; /* Reduced padding for mobile */
    font-size: 16px !important; /* Consistent font size */
    color: #f0f0f0 !important; /* Light text in inputs */
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important; /* Reduced spacing */
}

.um .um-form input[type="email"]::placeholder,
.um .um-form input[type="password"]::placeholder,
.um .um-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.um .um-form input[type="email"]:focus,
.um .um-form input[type="password"]:focus,
.um .um-form input[type="text"]:focus {
    border-color: #8be9fd !important; /* Accent teal highlight */
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(139, 233, 253, 0.25) !important; /* Stronger accent glow */
}

/* 6. Checkbox styling */
.um .um-field-checkbox input[type="checkbox"] {
    width: 18px !important; /* Slightly smaller for mobile */
    height: 18px !important;
    accent-color: #8be9fd !important; /* Accent color for checkbox */
    margin-right: 8px !important; /* Reduced margin */
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 6px !important;
    vertical-align: middle !important;
}
.um .um-field-checkbox .um-field-checkbox-label {
    color: #c0c0c0 !important; /* Lighter text for label */
    font-size: 14px !important; /* Smaller font for mobile */
    vertical-align: middle !important;
}

/* 7. Buttons - Responsive */
.um .um-form input[type="submit"],
.um .um-form .um-button {
    border-radius: 12px !important; /* Consistent rounding */
    padding: 14px 24px !important; /* Reduced padding */
    font-size: 16px !important; /* Consistent font size */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important; /* Reduced letter spacing */
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important; /* Deeper shadow */
    width: 100% !important; /* Buttons take full width of container */
    margin-bottom: 12px !important; /* Reduced space between buttons */
}

/* Primary Login Button (Accent color) */
.um .um-form input[type="submit"][name="login"],
.um-button.um-alt {
    background-color: #8be9fd !important; /* Muted teal accent */
    color: #161a29 !important; /* Dark text on light button */
    border: none !important;
}
.um .um-form input[type="submit"][name="login"]:hover,
.um-button.um-alt:hover {
    background-color: #6ed9f4 !important; /* Lighter teal on hover */
    transform: translateY(-2px) !important; /* Subtle lift effect */
    box-shadow: 0 12px 30px rgba(139, 233, 253, 0.4) !important; /* Enhanced hover shadow */
}

/* Secondary Register Button (Transparent/Outline) */
.um .um-form a.um-button {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Very subtle transparent background */
    color: #8be9fd !important; /* Accent text color */
    border: 1px solid rgba(139, 233, 253, 0.4) !important; /* Accent border */
}
.um .um-form a.um-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #6ed9f4 !important;
    border-color: #6ed9f4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 233, 253, 0.15) !important;
}

/* 8. Google Login Button - Responsive */
.um .um-form .um-field-google_btn .um-social-btn {
    background-color: #4285F4 !important; /* Standard Google blue */
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 15px !important; /* Slightly smaller for mobile */
    font-weight: 500 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important; /* Reduced gap */
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 15px !important; /* Reduced space below button */
}
.um .um-form .um-field-google_btn .um-social-btn:hover {
    background-color: #357ae8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* 9. Links (e.g., Forgot password) - Responsive */
.um .um-form .um-col-alt-b a,
.um .um-form .um-footer a {
    color: #8be9fd !important; /* Accent color for links */
    text-decoration: none !important;
    font-size: 13px !important; /* Smaller font for mobile */
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    margin-top: 8px !important; /* Reduced margin */
    display: block !important;
    text-align: center !important;
}
.um .um-form .um-col-alt-b a:hover,
.um .um-form .um-footer a:hover {
    color: #6ed9f4 !important;
    text-decoration: underline !important;
}

/* 10. Elegant Quote Section Styling (Left Side) - Always Visible */
.elegant-quote-section {
    flex: 1; /* Take remaining space */
    max-width: 600px; /* Maximum width */
    min-width: 250px; /* Minimum width before hiding */
    height: 100%; /* Take full height of parent wrapper */
    display: flex;
    align-items: center; /* Vertically center quote content */
    justify-content: center; /* Horizontally center quote content */
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

.elegant-quote-section .quote-content {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%); /* Translucent gradient background */
    border-radius: 20px;
    padding: 40px 30px; /* Responsive padding */
    backdrop-filter: blur(15px); /* Stronger frosty effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh; /* Prevent too tall on mobile */
    overflow-y: auto; /* Allow scrolling if needed */
}

/* Quote content styles - Responsive */
.elegant-quote-section .quote-text {
    font-size: 22px; /* Responsive font size */
    font-style: italic;
    font-weight: 300;
    line-height: 1.4; /* Tighter line height for mobile */
    margin-bottom: 20px; /* Reduced margin */
    color: #ffffff;
    position: relative;
    z-index: 2;
}
.elegant-quote-section .quote-text::before {
    content: '"'; /* Fancy opening quote */
    font-size: 50px; /* Smaller for mobile */
    position: absolute;
    top: -15px; /* Adjusted positioning */
    left: -15px;
    opacity: 0.3;
    color: #ffffff;
    line-height: 0;
}
.elegant-quote-section .quote-text::after {
    content: '"'; /* Fancy closing quote */
    font-size: 50px; /* Smaller for mobile */
    position: absolute;
    bottom: -30px; /* Adjusted positioning */
    right: -15px;
    opacity: 0.3;
    color: #ffffff;
    line-height: 0;
}

.elegant-quote-section .quote-author {
    font-size: 16px; /* Smaller for mobile */
    font-weight: 500;
    margin-bottom: 8px; /* Reduced margin */
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.elegant-quote-section .quote-tagline {
    font-size: 14px; /* Smaller for mobile */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px; /* Reduced margin */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px; /* Reduced padding */
    position: relative;
    z-index: 2;
}

/* 11. Mobile Responsiveness - FORCE HORIZONTAL LAYOUT ALWAYS */
@media (max-width: 768px) {
    /* Force horizontal layout even on mobile */
    .um .um-content-wrapper,
    .um-content-wrapper,
    .um-form-wrapper,
    .um-login-wrapper {
        flex-direction: row !important; /* Force horizontal */
        gap: 15px !important; /* Smaller gap on mobile */
        padding: 10px 5px !important; /* Minimal padding */
        height: 100vh !important; /* Force full height */
    }
    
    .um .um-form {
        padding: 25px 15px !important; /* Reduced padding */
        min-width: 250px !important; /* Minimum width for mobile */
        max-width: 350px !important; /* Maximum width on mobile */
        font-size: 14px !important; /* Smaller base font size */
    }
    
    .elegant-quote-section .quote-content {
        padding: 25px 15px !important; /* Reduced padding */
    }
    
    .elegant-quote-section .quote-text {
        font-size: 16px !important; /* Smaller text on mobile */
    }
    
    .um .um-form .my-custom-login-header .welcome-heading {
        font-size: 20px !important; /* Smaller heading */
    }
    
    .um .um-form .my-custom-login-header .login-logo {
        max-width: 50px !important; /* Smaller logo */
    }
    
    /* Make inputs more compact on mobile */
    .um .um-form input[type="email"],
    .um .um-form input[type="password"],
    .um .um-form input[type="text"] {
        padding: 10px 12px !important; /* Smaller padding */
        font-size: 14px !important; /* Smaller font */
        margin-bottom: 15px !important; /* Reduced spacing */
    }
    
    /* Make buttons more compact */
    .um .um-form input[type="submit"],
    .um .um-form .um-button,
    .um .um-form a.um-button,
    .um .um-form .um-field-google_btn .um-social-btn {
        font-size: 14px !important; /* Smaller button text */
        padding: 10px 16px !important; /* Reduced padding */
        margin-bottom: 10px !important; /* Reduced margin */
    }
}

@media (max-width: 480px) {
    /* Even more compact for very small screens */
    .um .um-content-wrapper,
    .um-content-wrapper,
    .um-form-wrapper,
    .um-login-wrapper {
        flex-direction: row !important; /* Still force horizontal */
        gap: 10px !important; /* Even smaller gap */
        padding: 5px !important; /* Minimal padding */
    }
    
    .um .um-form {
        padding: 20px 10px !important; /* Minimal padding */
        min-width: 200px !important; /* Minimum width for very small screens */
        max-width: 280px !important; /* Maximum width */
    }
    
    .elegant-quote-section {
        min-width: 150px !important; /* Reduced minimum width */
    }
    
    .elegant-quote-section .quote-content {
        padding: 20px 10px !important; /* Minimal padding */
    }
    
    .elegant-quote-section .quote-text {
        font-size: 14px !important; /* Smaller text */
        line-height: 1.3 !important; /* Tighter line height */
    }
    
    .um .um-form .my-custom-login-header .welcome-heading {
        font-size: 18px !important; /* Smaller heading */
    }
    
    .um .um-form input[type="email"],
    .um .um-form input[type="password"],
    .um .um-form input[type="text"] {
        padding: 8px 10px !important; /* Even smaller padding */
        font-size: 13px !important; /* Smaller font */
    }
    
    .um .um-form input[type="submit"],
    .um .um-form .um-button,
    .um .um-form a.um-button,
    .um .um-form .um-field-google_btn .um-social-btn {
        font-size: 13px !important; /* Smaller button text */
        padding: 8px 12px !important; /* Smaller padding */
    }
}

/* Override any Ultimate Member responsive styles that might force stacking */
@media (max-width: 1200px) {
    .um .um-content-wrapper,
    .um-content-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 1024px) {
    .um .um-content-wrapper,
    .um-content-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 768px) {
    .um .um-content-wrapper,
    .um-content-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

/* Nuclear option - force horizontal layout on ANY container */
.um-form,
.um-login-form,
.um-content,
.um-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Reset form to column layout inside its container */
.um .um-form,
.um-form {
    display: flex !important;
    flex-direction: column !important; /* Form content should be vertical */
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
}