/* Modern Login Page Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.login-page {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    box-sizing: border-box;
}

.login-right {
    flex: 1;
    background-color: #1a2942;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    box-sizing: border-box;
}

.login-right-content {
    max-width: 400px;
    padding: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.login-logo {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo img {
    max-height: 60px;
    width: auto;
    max-width: 200px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-box-msg {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.login-subtext {
    margin-bottom: 30px;
    color: #777;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    display: block;
}

.password-field-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 5px;
}

.password-field-wrapper .form-group {
    flex: 1;
    margin: 0;
    margin-bottom: 0;
}

.modern-form-control {
    height: 45px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.modern-form-control:focus {
    border-color: #5c6bc0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2);
}

.modern-btn-primary {
    background-color: #5c6bc0;
    border: none;
    width: 100%;
    height: 45px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 5px;
    color: white;
    cursor: pointer;
}

.modern-btn-primary:hover {
    background-color: #4f5aa8;
}

.demo-notice {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 14px;
}

.welcome-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.password-toggle {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #666 !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.password-toggle:hover {
    border-color: #5c6bc0 !important;
    background-color: #f8f9ff !important;
    color: #5c6bc0 !important;
}

.password-toggle:focus {
    outline: none !important;
    border-color: #5c6bc0 !important;
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2) !important;
}

.password-toggle span {
    display: inline-block !important;
    line-height: 1 !important;
}

.login-options {
    margin-bottom: 5px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.remember-me-side {
    display: flex;
    align-items: center;
}

.remember-me-side .form-group {
    margin: 0;
}

.remember-me-side .checkbox {
    margin: 0;
}

.remember-me-side label {
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.forgot-password-side {
    display: flex;
    align-items: center;
}

.forgot-password {
    color: #5c6bc0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #5c6bc0;
}

.remember-me-wrapper {
    display: flex;
    align-items: center;
}

.remember-me-wrapper .form-group {
    margin: 0;
}

.remember-me-wrapper input[type="checkbox"] {
    margin-right: 8px;
}

.remember-me-wrapper label {
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
}

/* Override any conflicting AdminLTE styles for this page */
body.login-page .login-page {
    background-color: transparent;
}

/* Force full block styles - override any framework styles */
.login-page .login-right {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.login-page .login-left {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Ensure the page takes full viewport */
.login-page {
    max-width: none !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Responsive design */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
        height: auto;
        min-height: 100%;
    }
    
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: auto;
        position: relative;
    }
    
    .login-left {
        flex: none;
        padding: 20px;
        min-height: auto;
    }
    
    .login-right {
        flex: none;
        order: -1;
        padding: 0;
        min-height: 200px;
    }
    
    .login-right-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .login-form-container {
        margin-bottom: 20px;
    }
    
    .demo-notice {
        font-size: 13px;
        padding: 12px;
    }
    
    .login-box-msg {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .modern-form-control {
        height: 50px;
        font-size: 16px;
    }
    
    .modern-btn-primary {
        height: 50px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .password-toggle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password-side {
        align-self: flex-end;
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
    .login-left {
        padding: 15px;
    }
    
    .login-right-content {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .welcome-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .demo-notice {
        font-size: 12px;
        padding: 10px;
        margin-bottom: 15px;
    }
} 