:root {
    --primary-color: #2A5EE8;
    --primary-hover: #1E4FD4;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --border-color: #e0e0e0;
    --light-bg: #f8f9fa;
    --info-bg: #f5f8ff;
    --border-radius: 6px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

/* Main login container */
.login-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 520px;
    max-height: 520px;
    height: 520px;
}

/* Left side - Login form */
.login-form-container {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    justify-content: flex-start;
    min-width: 400px;
    height: 100%;
}

.logo-container {
    /* margin-bottom: 40px; */
    margin-bottom: 20px;
    text-align: center;
}

.logo-container img {
    max-width: 160px;
    max-height: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.welcome-text {
    text-align: center;
    /* margin-bottom: 30px; */
    margin-bottom: 15px;
}

.welcome-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.welcome-text p {
    color: var(--light-text);
    margin: 0;
}

/* Form styling */
.login-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.form-group
.remember-me {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 94, 232, 0.1);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    font-size: 14px;
    color: var(--light-text);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn-login:hover {
    background-color: var(--primary-hover);
}

.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.footer-text {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--lighter-text);
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Right side - Info slides */
.info-slides-container {
    flex: 1;
    background-color: var(--info-bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.info-slide {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.info-slide.active {
    display: block;
}

.info-slide img {
    max-width: 100px;
    margin: 0 auto 20px;
    display: block;
}

.info-slide h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-slide p {
    text-align: center;
    color: var(--light-text);
    max-width: 350px;
    margin: 0 auto;
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(42, 94, 232, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background-color: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

.powered-by-container {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #999;
    width: 100%;
    max-width: 1000px; /* Match card width */
    padding: 0 20px;
}

.powered-by-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by-container a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Adjust main container to accommodate footer */
.main-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0px 10px 0px;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 900px) {
    body {
        align-items: flex-start;
    }
    .main-page-wrapper {
        padding-top: 24px;
        padding-bottom: 10px;
    }
    .login-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
        max-height: none;
        height: auto;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
    
    .login-form-container {
        min-width: auto;
        padding: 30px;
    }
    
    .info-slides-container {
        display: none; /* Hide info slides on mobile */
    }
}

@media (max-width: 480px) {
    .login-container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .login-form-container {
        padding: 16px 8px;
    }
    
    .logo-container img {
        max-width: 180px;
        max-height: 70px;
    }
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--light-text);
}

.password-toggle i {
    width: 20px;
    height: 20px;
}

/* Adjust input padding to prevent text overlap */
.password-input-container .form-control {
    padding-right: 45px;
}