body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #050a15;
    overflow: hidden; /* Strictly prevent body scrolling */
}

.login-wrapper {
    height: 100vh;
    background: linear-gradient(rgba(2, 6, 20, 0.75), rgba(2, 6, 20, 0.75)), url('img/95b9d9be-29f7-4082-9199-c867daad869b.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Strictly prevent all scrolling */
}

.login-container {
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 10vh;
}

.main-content-row {
    padding-top: 1vh;
    padding-bottom: 1vh;
}

/* Typography Helpers */
.fs-7 {
    font-size: 0.85rem;
}

.cursor-pointer {
    cursor: pointer;
}

.text-blue {
    color: #4a90e2 !important;
}

.text-gold {
    color: #e6b741 !important;
}

/* Left Column Styling */
.left-column {
    padding-bottom: 1rem;
    gap: 2.5vh; /* Responsive vertical gap instead of fixed margins */
}

.eternis-logo {
    max-width: 280px; /* Reduced to balance */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    justify-content: center;
}

.glow-line {
    width: 25px;
    height: 1px;
    background: #e6b741;
    box-shadow: 0 0 10px #e6b741, 0 0 20px #e6b741;
}

.rios-logo {
    max-width: 340px; /* Reduced to balance */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(230, 183, 65, 0.2));
}

.mobile-rios-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(230, 183, 65, 0.2));
}

.slogan {
    font-size: 1.1rem;
    font-weight: 300;
}

.slogan .highlight {
    color: #4a90e2;
    font-weight: 500;
}

/* Unified Features Container */
.features-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-wrap: nowrap;
}

.feature-item {
    padding: 0 10px;
}

.feature-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 15px;
    align-self: center;
}

.feature-icon {
    font-size: 1.5rem;
    color: #4a90e2;
}

.feature-title {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.feature-desc {
    color: #8b98b8;
    font-size: 0.65rem;
    line-height: 1.3;
}

/* Right Column & Card Styling */
.glass-card {
    background: rgba(12, 18, 33, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Outer glow for card */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.welcome-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.welcome-subtitle {
    color: #8b98b8;
    font-size: 0.85rem;
}

/* Form Inputs */
.form-label {
    margin-bottom: 0.3rem;
    font-weight: 400;
    color: #c9d1e1 !important;
}

.custom-input-group {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: all 0.3s;
}

.custom-input-group .input-group-text {
    background: transparent;
    border: none;
    color: #6a799c;
    padding-left: 1rem;
    padding-right: 0.5rem;
}

.custom-input-group .form-control {
    background: transparent;
    border: none;
    color: #ffffff;
    padding-left: 0.5rem;
    box-shadow: none;
    font-size: 0.9rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.custom-input-group .form-control::placeholder {
    color: #576585;
}

.custom-input-group:focus-within {
    border-color: #4a90e2;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.custom-input-group:focus-within .input-group-text {
    color: #4a90e2;
}

/* Forgot Password */
.forgot-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #74aef0;
    text-decoration: underline;
}

/* Buttons */
.sign-in-btn {
    background: linear-gradient(90deg, #1852a3 0%, #3a7bd5 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 82, 163, 0.4);
}

.sign-in-btn:hover {
    background: linear-gradient(90deg, #1b5cb8 0%, #4489eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.5);
}

.login-btn-mobile {
    background: linear-gradient(90deg, #d4a34b 0%, #f3d488 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 163, 75, 0.3);
}

.login-btn-mobile:hover {
    background: linear-gradient(90deg, #e0b055 0%, #ffe499 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 163, 75, 0.4);
}

/* Help & Privacy Links */
.help-links a {
    font-size: 0.8rem;
    color: #7b88a8 !important;
    transition: color 0.3s;
}

.help-links a:hover {
    color: #ffffff !important;
}

.help-links i {
    font-size: 0.95rem;
}

/* Footer */
.footer-text {
    font-size: 0.75rem;
    color: #576585;
}

/* Smart scroll fallback for very small screens (height < 700px) */
@media (max-height: 700px) {
    body, html, .login-wrapper {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    body, html, .login-wrapper {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    .left-column {
        margin-bottom: 2rem !important;
        padding-bottom: 0;
    }
    .eternis-logo {
        max-width: 200px;
    }
    
    .glass-card {
        background: rgba(12, 18, 33, 0.65);
        border-radius: 20px;
    }
}
