* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Handle oversized images */
.slide-bg.oversized {
    object-fit: cover; /* For actual img elements */
    background-size: contain; /* For background images that are too large */
    background-repeat: no-repeat;
    background-position: center;
}

/* Body styles */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* For desktop - modified to handle overflow better */
@media (min-width: 1025px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    /* Only hide overflow on screens that are tall enough */
    @media (min-height: 801px) {
        html, body {
            overflow: hidden;
        }
    }
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 20px;
    max-height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 900px;
    height: 665px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.left-side {
    position: relative;
    width: 50%;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 0;
    background: #005aa7; /* Fallback */
}

.right-side {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 10px 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* For desktop */
.slide:nth-child(1) .slide-bg-desktop {
    background-image: url('https://clf.finkeda.com/resources/assets/lap/1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(2) .slide-bg-desktop {
    background-image: url('https://clf.finkeda.com/resources/assets/lap/2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(3) .slide-bg-desktop {
    background-image: url('https://clf.finkeda.com/resources/assets/lap/3.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(4) .slide-bg-desktop {
    background-image: url('https://clf.finkeda.com/resources/assets/lap/4.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(5) .slide-bg-desktop {
    background-image: url('https://clf.finkeda.com/resources/assets/lap/5.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

/* For tablet */
.slide:nth-child(1) .slide-bg-tablet {
    background-image: url('https://clf.finkeda.com/resources/assets/palm/1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(2) .slide-bg-tablet {
    background-image: url('https://clf.finkeda.com/resources/assets/palm/2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(3) .slide-bg-tablet {
    background-image: url('https://clf.finkeda.com/resources/assets/palm/3.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(4) .slide-bg-tablet {
    background-image: url('https://clf.finkeda.com/resources/assets/palm/4.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(5) .slide-bg-tablet {
    background-image: url('https://clf.finkeda.com/resources/assets/palm/5.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

/* For mobile */
.slide:nth-child(1) .slide-bg-mobile {
    background-image: url('https://clf.finkeda.com/resources/assets/eye/1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(2) .slide-bg-mobile {
    background-image: url('https://clf.finkeda.com/resources/assets/eye/2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(3) .slide-bg-mobile {
    background-image: url('https://clf.finkeda.com/resources/assets/eye/3.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(4) .slide-bg-mobile {
    background-image: url('https://clf.finkeda.com/resources/assets/eye/4.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

.slide:nth-child(5) .slide-bg-mobile {
    background-image: url('https://clf.finkeda.com/resources/assets/eye/5.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;    /* 👈 Stretch to fill both height and width */
    width: 100%;
    height: 100%;
}

/* Responsive background images based on device size */
@media (min-width: 1025px) {
    .slide-bg-desktop {
        display: block;
    }
    
    .slide-bg-tablet, .slide-bg-mobile {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .slide-bg-tablet {
        display: block;
    }
    
    .slide-bg-desktop, .slide-bg-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .slide-bg-mobile {
        display: block;
    }
    
    .slide-bg-desktop, .slide-bg-tablet {
        display: none;
    }
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 0 30px;
    text-align: center;
}

.slide-content h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 5;
    padding: 0 15px;
}

.slider-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

.slider-nav-btn:hover {
    background-color: rgba(0,0,0,0.6);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.pause-indicator {
    display: none;
    color: white;
    font-size: 12px;
    background-color: rgba(0,0,0,0.3);
    padding: 3px 6px;
    border-radius: 2px;
    cursor: pointer;
}

.paused .pause-indicator {
    display: block;
}

.website {
    position: absolute;
    bottom: 30px;
    font-size: 14px;
    opacity: 0.8;
    z-index: 2;
}

.greeting {
    margin-bottom: 30px;
    color: #333;
}

.greeting h2 {
    color: #666;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 5px;
}

.greeting h3 {
    color: #005aa7;
    font-size: 22px;
    font-weight: 500;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 500;
    color: #333;
}

.login-header span {
    color: #005aa7;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) inset;
}

.input-group input:focus {
    border-color: #005aa7;
    box-shadow: 0 0 0 2px rgba(0, 90, 167, 0.2);
    background: white;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember input {
    width: 18px;
    height: 18px;
    accent-color: #005aa7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 3px;
    position: relative;
}

.remember label {
    font-size: 14px;
    color: #888;
}

.forgot {
    font-size: 14px;
    color: #888;
    text-decoration: none;
}

.forgot:hover {
    color: #005aa7;
}

.submit-btn {
    background: linear-gradient(to right, #005aa7, #00b4db);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 90, 167, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 90, 167, 0.3);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 90, 167, 0.2);
}

.create-account {
    text-align: center;
    font-size: 14px;
}

.create-account a {
    color: #666;
    text-decoration: none;
}

.create-account a:hover {
    color: #005aa7;
}

/* Social icons */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.facebook {
    background-color: #3b5998;
}

.linkedin {
    background-color: #0077b5;
}

.twitter {
    background-color: #1da1f2;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.youtube {
    background-color: #ff0000;
}

/* Footer styles */
.footer {
    width: 100%;
    padding: 15px 0;
    background: #f0f2f5;
    text-align: center;
    font-size: 14px;
    color: #00cfdd;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #00cfdd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00cfdd;
}

.copyright {
    font-size: 12px;
}

/* Add Finkeda branding */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 120px;
    height: auto;
}

/* NEW RESPONSIVE FIXES FOR DIFFERENT RESOLUTIONS */

/* For 1920px and higher - Large screens */
@media screen and (min-width: 1920px) {
    .login-container {
        width: 1200px;
        height: 700px;
    }
    
    .right-side {
        padding: 60px;
    }
    
    /* Increase font sizes for better readability on large screens */
    .greeting h2 {
        font-size: 18px;
    }
    
    .greeting h3 {
        font-size: 26px;
    }
    
    .login-header h2 {
        font-size: 26px;
    }
    
    .input-group label {
        font-size: 16px;
    }
    
    .input-group input {
        padding: 15px;
        font-size: 18px;
    }
    
    .remember label, .forgot {
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 18px;
        font-size: 18px;
    }
    
    /* Make slider content bigger */
    .slide-content h1 {
        font-size: 46px;
    }
    
    .slide-content p {
        font-size: 22px;
    }
    
    /* Make navigation controls bigger */
    .slider-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .dot {
        width: 14px;
        height: 14px;
    }
    
    /* Social icons */
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* For 1600px-1919px - Medium-large screens */
@media screen and (min-width: 1600px) and (max-width: 1919px) {
    .login-container {
        width: 1100px;
        height: 680px;
    }
    
    .right-side {
        padding: 50px;
    }
}

/* For 1280px-1599px - Medium screens */
@media screen and (min-width: 1280px) and (max-width: 1599px) {
    .login-container {
        width: 1000px;
        height: 665px;
    }
}

/* For 1280x800 resolution specifically */
@media screen and (max-width: 1280px) and (max-height: 800px) {
    html, body {
        overflow-y: auto !important;
        height: auto !important;
    }
    
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .page-container {
        min-height: auto;
    }
    
    .main-content {
        padding: 10px;
        max-height: none;
    }
    
    .login-container {
        width: 90%;
        max-width: 800px;
        height: auto;
        min-height: 550px;
    }
    
    /* Adjust right side padding */
    .right-side {
        padding: 30px 20px;
    }
    
    /* Reduce spacing between elements */
    .greeting {
        margin-bottom: 15px;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .options {
        margin-bottom: 20px;
    }
    
    .submit-btn {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    /* Make slider navigation smaller */
    .slider-nav {
        bottom: 15px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    /* Add some space to footer */
    .footer {
        padding: 10px 0;
        margin-top: 10px;
    }
}

/* For very short screens */
@media screen and (max-height: 700px) {
    body {
        padding: 5px 0;
        overflow: hidden;
    }
    
    .login-container {
        min-height: auto;
        height: auto;
    }
    
    /* Extreme space reduction */
    .greeting, .login-header {
        margin-bottom: 10px;
    }
    
    .input-group {
        margin-bottom: 10px;
    }
    
    .input-group input {
        padding: 8px 12px;
    }
    
    .options {
        margin-bottom: 15px;
    }
    
    .submit-btn {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .social-login {
        margin-top: 10px;
    }
    
    /* Fix slider for very short screens */
    .slide-content h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
}

/* Mobile and tablet styles */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-width: 450px;
        overflow: hidden;
    }
    
    .left-side, .right-side {
        width: 100%;
    }
    
    .left-side {
        height: 200px;
    }
    
    .right-side {
        padding: 30px 20px;
        box-shadow: none;
        border-radius: 0 0 10px 10px;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .website {
        bottom: 15px;
        font-size: 12px;
    }
    
    .slider-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-login {
        gap: 10px;
    }
}

/* For tablets */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        width: 100%;
        max-width: 800px;
        overflow: hidden;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .right-side {
        padding: 40px 30px;
    }
    
    .social-login {
        gap: 10px;
    }
}

/* Main media query to ensure content fits within viewport */
@media screen and (max-width: 1280px) {
    html, body {
        overflow-y: auto !important;
        height: auto !important;
        overflow: hidden;
    }
    
    .page-container {
        min-height: 100vh;
        height: auto;
    }
    
    .main-content {
        max-height: none;
        overflow: visible;
    }
}

/* Fix for viewport height issues */
@media screen and (max-height: 800px) {
    .login-container {
        transform: scale(0.95);
        transform-origin: center center;
        margin: 10px auto;
        overflow: hidden;
    }
}

/* Add viewport meta tag in HTML */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> */